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:
Leo Hemsted
2020-07-10 15:30:25 +01:00
parent bc0cfed468
commit 8dda1a5123
4 changed files with 39 additions and 4 deletions

View File

@@ -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,