mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Update app/broadcast_message/rest.py
Co-authored-by: Chris Hill-Scott <me@quis.cc>
This commit is contained in:
@@ -49,7 +49,7 @@ def _update_broadcast_message(broadcast_message, new_status, updating_user):
|
||||
)
|
||||
|
||||
if new_status == BroadcastStatusType.BROADCASTING:
|
||||
# trial mode services can approve their own broadcasts
|
||||
# training mode services can approve their own broadcasts
|
||||
if updating_user == broadcast_message.created_by and not broadcast_message.service.restricted:
|
||||
raise InvalidRequest(
|
||||
f'User {updating_user.id} cannot approve their own broadcast_message {broadcast_message.id}',
|
||||
|
||||
Reference in New Issue
Block a user