mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 09:08:25 -04:00
remove admin_override from all has_permissions usage
as previously pointed out, it's not used anywhere.
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
<div class="dashboard">
|
||||
|
||||
<h1 class="visuallyhidden">Dashboard</h1>
|
||||
{% if current_user.has_permissions('manage_templates', admin_override=True) %}
|
||||
{% if current_user.has_permissions('manage_templates') %}
|
||||
{% if not templates %}
|
||||
{% include 'views/dashboard/write-first-messages.html' %}
|
||||
{% endif %}
|
||||
{% elif not current_user.has_permissions('send_messages', 'manage_api_keys', any_=True, admin_override=True) %}
|
||||
{% elif not current_user.has_permissions('send_messages', 'manage_api_keys', any_=True) %}
|
||||
{% include 'views/dashboard/no-permissions-banner.html' %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user