mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
forbid editing after broadcast message goes live
only allow editing while in: * draft * pending-approval * rejected (not too sure if/how this'll be used, so easier to include it for now)
This commit is contained in:
@@ -1011,7 +1011,7 @@ def create_broadcast_message(
|
||||
template_id=template.id,
|
||||
template_version=template.version,
|
||||
personalisation=personalisation,
|
||||
status=BroadcastStatusType.DRAFT,
|
||||
status=status,
|
||||
starts_at=starts_at,
|
||||
finishes_at=finishes_at,
|
||||
created_by_id=created_by.id if created_by else template.created_by_id,
|
||||
|
||||
Reference in New Issue
Block a user