From 62a20cf0ef8de693a504f10e5c4692194e70a701 Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Tue, 6 Aug 2013 11:49:12 -0400 Subject: [PATCH] Make emailgateway@zulip.com an API superuser. (imported from commit 02b6c98123bbc10bd8feca29382a091b43d5b65a) --- zerver/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/views.py b/zerver/views.py index 1601edff9a..0a6958ea6f 100644 --- a/zerver/views.py +++ b/zerver/views.py @@ -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?