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

@ -25,7 +25,7 @@
<div class="box">
<div class="title">
<ul class="links">
%if h.HasPermissionAny('hg.admin','hg.create.repository')():
%if c.can_create_repo:
<li>
<a href="${h.route_path('repo_new')}" class="btn btn-small btn-success">${_(u'Add Repository')}</a>
</li>