mirror of https://github.com/zulip/zulip.git
Hide users list for MIT
(imported from commit 4e9dcef483e0c0d85ba2e7511f1abfa4da06be9e)
This commit is contained in:
parent
7ab82019eb
commit
78ffe36c2d
|
@ -1337,6 +1337,11 @@ def get_status_list(requesting_user_profile):
|
||||||
|
|
||||||
|
|
||||||
user_statuses = defaultdict(dict)
|
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(
|
for presence in UserPresence.objects.filter(
|
||||||
user_profile__realm=requesting_user_profile.realm).select_related('user_profile', 'client'):
|
user_profile__realm=requesting_user_profile.realm).select_related('user_profile', 'client'):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue