forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
populate_db: Use do_change_is_admin for setting api_super_user.
- Loading branch information
1 parent
0e708d1
commit c1a8ba2
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,8 +231,7 @@ def handle(self, **options: Any) -> None: | |
|
||
# Initialize the email gateway bot as an API Super User | ||
email_gateway_bot = get_system_bot(settings.EMAIL_GATEWAY_BOT) | ||
email_gateway_bot.is_api_super_user = True | ||
email_gateway_bot.save() | ||
do_change_is_admin(email_gateway_bot, True, permission="api_super_user") | ||
|
||
zoe = get_user("[email protected]", zulip_realm) | ||
zulip_webhook_bots = [ | ||
|