mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 03:13:12 -04:00
Use new permissions for the button on the broadcast dashboard
The broadcast dashboards contain a button to create a new broadcast. This adds the new `create_broadcasts` permission as one of the permissions needed to see the button.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
'current_broadcasts'
|
||||
) }}
|
||||
|
||||
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
|
||||
{% if current_user.has_permissions('send_messages', 'create_broadcasts', restrict_admin_usage=True) %}
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
{{ govukButton({
|
||||
"element": "a",
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
{% include('views/broadcast/partials/dashboard-table.html') %}
|
||||
|
||||
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
|
||||
{% if current_user.has_permissions('send_messages', 'create_broadcasts', restrict_admin_usage=True) %}
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
{{ govukButton({
|
||||
"element": "a",
|
||||
|
||||
Reference in New Issue
Block a user