remove admin_override from all has_permissions usage

as previously pointed out, it's not used anywhere.
This commit is contained in:
Leo Hemsted
2018-03-01 10:30:17 +00:00
parent 3ae815528c
commit 4a08cf81e7
27 changed files with 108 additions and 127 deletions

View File

@@ -107,7 +107,7 @@
{% macro edit_field(text, link, permissions=[]) -%}
{% call field(align='right') %}
{% if current_user.has_permissions(*permissions, **{'any_':True, 'admin_override': True}) or not permissions %}
{% if current_user.has_permissions(*permissions, **{'any_': True}) or not permissions %}
<a href="{{ link }}">{{ text }}</a>
{% endif %}
{% endcall %}