auth: reduced usage of raw auth calls inside templates

This commit is contained in:
Marcin Kuzminski 2019-03-27 12:29:31 +01:00
parent 5afda5d73b
commit 0a8e792efc
19 changed files with 64 additions and 59 deletions

View file

@ -3,7 +3,7 @@
<div class="panel panel-default user-profile">
<div class="panel-heading">
<h3 class="panel-title">${_('User Profile')}</h3>
%if h.HasPermissionAny('hg.admin')():
%if c.is_super_admin:
${h.link_to(_('Edit'), h.route_path('user_edit', user_id=c.user.user_id), class_='panel-edit')}
%endif
</div>