mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Allow org admin to send messages within a service
This commit is contained in:
@@ -73,9 +73,9 @@ def unicode_truncate(s, length):
|
||||
|
||||
def should_skip_template_page(db_template):
|
||||
return (
|
||||
current_user.has_permissions(ServicePermission.SEND_MESSAGES)
|
||||
current_user.has_permissions(ServicePermission.SEND_MESSAGES, allow_org_user=True)
|
||||
and not current_user.has_permissions(
|
||||
ServicePermission.MANAGE_TEMPLATES, "manage_api_keys"
|
||||
ServicePermission.MANAGE_TEMPLATES, "manage_api_keys", allow_org_user=True
|
||||
)
|
||||
and not db_template["archived"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user