mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 12:38:26 -04:00
Let users without send_messages view broadcasts
At the moment viewing a broadcast is limited to those users who have the `send_messages` permission. This doesn’t match how we describe the permissions on the team members page This commit makes it so that any team member can see a broadcast that’s in any state other than `draft`.
This commit is contained in:
@@ -182,7 +182,7 @@ def preview_broadcast_message(service_id, broadcast_message_id):
|
||||
|
||||
|
||||
@main.route('/services/<uuid:service_id>/broadcast/<uuid:broadcast_message_id>')
|
||||
@user_has_permissions('send_messages')
|
||||
@user_has_permissions()
|
||||
@service_has_permission('broadcast')
|
||||
def view_broadcast_message(service_id, broadcast_message_id):
|
||||
broadcast_message = BroadcastMessage.from_id(
|
||||
|
||||
Reference in New Issue
Block a user