mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
migrations: Allow zulipinternal bots to delete their own messages.
This commit is contained in:
committed by
Tim Abbott
parent
8786d96fe9
commit
1f045bc794
@@ -33,6 +33,7 @@ def create_internal_realm() -> None:
|
||||
# is changed later before the transaction is committed.
|
||||
for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():
|
||||
setattr(realm, permission_configuration.id_field_name, -1)
|
||||
realm.delete_own_message_policy = 1
|
||||
realm.save()
|
||||
|
||||
RealmAuditLog.objects.create(
|
||||
|
||||
Reference in New Issue
Block a user