mirror of https://github.com/zulip/zulip.git
Make emailgateway@zulip.com an API superuser.
(imported from commit 02b6c98123bbc10bd8feca29382a091b43d5b65a)
This commit is contained in:
parent
9130fbec84
commit
62a20cf0ef
|
@ -1070,7 +1070,8 @@ def json_update_onboarding_steps(request, user_profile,
|
|||
# Currently tabbott/extra@mit.edu is our only superuser. TODO: Make
|
||||
# this a real superuser security check.
|
||||
def is_super_user_api(request):
|
||||
return request.user.is_authenticated() and request.user.email == "tabbott/extra@mit.edu"
|
||||
return request.user.is_authenticated() and \
|
||||
(request.user.email in ["tabbott/extra@mit.edu", "emailgateway@zulip.com"])
|
||||
|
||||
def mit_to_mit(user_profile, email):
|
||||
# Are the sender and recipient both @mit.edu addresses?
|
||||
|
|
Loading…
Reference in New Issue