Layout: added a link to admin panel in the navigation menu

This commit is contained in:
Ilya Prokopenko 2021-09-12 10:43:25 +07:00
parent f935cb255b
commit 62b099fdd7
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -155,6 +155,9 @@
</a>
<a href="/settings" class="link">{_"my_settings"}</a>
<div style="height: 1px;background: #CCC;margin: 4px 0 2px;"></div>
{if $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
<a href="/admin" class="link">Админ-панель</a>
{/if}
{if $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
<a href="/support/tickets" class="link">Helpdesk</a>
{/if}