Hide users list for MIT

(imported from commit 4e9dcef483e0c0d85ba2e7511f1abfa4da06be9e)
This commit is contained in:
Leo Franchi 2013-02-12 12:09:05 -05:00 committed by Luke Faraone
parent 7ab82019eb
commit 78ffe36c2d
1 changed files with 5 additions and 0 deletions

View File

@ -1337,6 +1337,11 @@ def get_status_list(requesting_user_profile):
user_statuses = defaultdict(dict)
# Return no status info for MIT
if requesting_user_profile.realm.domain == 'mit.edu':
return json_success({'presences': user_statuses})
for presence in UserPresence.objects.filter(
user_profile__realm=requesting_user_profile.realm).select_related('user_profile', 'client'):