mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Admin: show the login as button only with certain rights
This commit is contained in:
parent
8369857e17
commit
b66bac7746
1 changed files with 5 additions and 3 deletions
|
@ -49,9 +49,11 @@
|
||||||
<a class="aui-button aui-button-primary" href="/admin/users/id{$user->getId()}">
|
<a class="aui-button aui-button-primary" href="/admin/users/id{$user->getId()}">
|
||||||
<span class="aui-icon aui-icon-small aui-iconfont-new-edit">Редактировать</span>
|
<span class="aui-icon aui-icon-small aui-iconfont-new-edit">Редактировать</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="aui-button" href="/setSID/{$user->getChandlerUser()->getId()}?hash={rawurlencode($csrfToken)}">
|
{if $thisUser->getChandlerUser()->can("substitute")->model('openvk\Web\Models\Entities\User')->whichBelongsTo(0)}
|
||||||
<span class="aui-icon aui-icon-small aui-iconfont-sign-in">Войти как</span>
|
<a class="aui-button" href="/setSID/{$user->getChandlerUser()->getId()}?hash={rawurlencode($csrfToken)}">
|
||||||
</a>
|
<span class="aui-icon aui-icon-small aui-iconfont-sign-in">Войти как</span>
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue