mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Layout: added a link to admin panel in the navigation menu
This commit is contained in:
parent
f935cb255b
commit
62b099fdd7
1 changed files with 3 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue