mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -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:
|
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:
|
if updating_user == broadcast_message.created_by and not broadcast_message.service.restricted:
|
||||||
raise InvalidRequest(
|
raise InvalidRequest(
|
||||||
f'User {updating_user.id} cannot approve their own broadcast_message {broadcast_message.id}',
|
f'User {updating_user.id} cannot approve their own broadcast_message {broadcast_message.id}',
|
||||||
|
|||||||
Reference in New Issue
Block a user