mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 18:22:37 -04:00
Remove check for send_messages permission from broadcast pages
The `send_messages` permission has been deprecated for use with broadcast services, so we can drop support for it in the code. We were supporting both the old permissions and new permissions (`create_broadcasts` and `approve_broadcasts`) while we switched people over. This removes `send_messages` from the `user_has_permissions` decorator around the broadcast routes and from the page to view a broadcast and broadcast dashboards. We can now git rid of a lot of the parameterization that was temporarily added to the tests.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
'current_broadcasts'
|
||||
) }}
|
||||
|
||||
{% if current_user.has_permissions('send_messages', 'create_broadcasts', restrict_admin_usage=True) %}
|
||||
{% if current_user.has_permissions('create_broadcasts', restrict_admin_usage=True) %}
|
||||
<div class="js-stick-at-bottom-when-scrolling">
|
||||
{{ govukButton({
|
||||
"element": "a",
|
||||
|
||||
Reference in New Issue
Block a user