mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
don't allow us to create permissions decorator without permissions
ie: not for an organisation, and not for a service
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
|
||||
{% macro edit_field(text, link, permissions=[]) -%}
|
||||
{% call field(align='right') %}
|
||||
{% if current_user.has_permissions(*permissions) or not permissions %}
|
||||
{% if not permissions or current_user.has_permissions(*permissions) %}
|
||||
<a href="{{ link }}">{{ text }}</a>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user