auth: reduced usage of raw auth calls inside templates
This commit is contained in:
parent
5afda5d73b
commit
0a8e792efc
19 changed files with 64 additions and 59 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue