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:
Katie Smith
2021-07-26 10:58:16 +01:00
parent b5fa6aeb33
commit 8b08661902
6 changed files with 116 additions and 172 deletions
+1 -1
View File
@@ -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",