Skip to content

Commit

Permalink
populate_db: Use do_change_is_admin for setting api_super_user.
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszmandera authored and timabbott committed Jul 15, 2019
1 parent 0e708d1 commit c1a8ba2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zilencer/management/commands/populate_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit c1a8ba2

Please sign in to comment.