mirror of https://github.com/zulip/zulip.git
Remove starnine@mit.edu from API super users.
(imported from commit 67019a1e2a298a56b0efe598d4492f4b0f8dee87)
This commit is contained in:
parent
bb3f030f7e
commit
1ef33bc5ea
|
@ -490,12 +490,10 @@ def json_send_message(request):
|
|||
return send_message_backend(request, user_profile, user_profile,
|
||||
client_name=request.POST.get("client"))
|
||||
|
||||
# Currently tabbott/extra@mit.edu and starnine@mit.edu are our
|
||||
# superusers. Once we migrate zephyr mirroring, we can drop
|
||||
# starnine@mit.edu. TODO: Make this a real superuser security check.
|
||||
# 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.POST.get("api-key") in ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]
|
||||
return request.POST.get("api-key") in ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]
|
||||
|
||||
def already_sent_mirrored_message(request):
|
||||
utc_from_ts = datetime.datetime.utcfromtimestamp
|
||||
|
|
Loading…
Reference in New Issue