mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
remove unnecessary invocations of has_permissions(..., any_=True)
when added to a service, all users are given the view_activity permission. So, if that's included in the list, we don't need `any_`, and we don't need any of the other permissions.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
{% if not templates %}
|
||||
|
||||
{% if current_user.has_permissions('manage_templates', any_=True) %}
|
||||
{% if current_user.has_permissions('manage_templates') %}
|
||||
<p class="bottom-gutter">
|
||||
You need a template before you can send text messages.
|
||||
</p>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<h1 class="heading-large">Templates</h1>
|
||||
|
||||
{% if current_user.has_permissions('manage_templates', any_=True) %}
|
||||
{% if current_user.has_permissions('manage_templates') %}
|
||||
<p class="bottom-gutter">
|
||||
You need a template before you can send
|
||||
{% if 'letter' in current_service.permissions %}
|
||||
|
||||
Reference in New Issue
Block a user