From 1ef33bc5ea20388c410890feb045e79311d1268d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 8 Nov 2012 13:33:47 -0500 Subject: [PATCH] Remove starnine@mit.edu from API super users. (imported from commit 67019a1e2a298a56b0efe598d4492f4b0f8dee87) --- zephyr/views.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/zephyr/views.py b/zephyr/views.py index 448273d1ea..c9d6950dcb 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -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