mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
digest: Make newly registered users data inaccessible to guest users.
The new can_access_all_realm_members function is meant to act as a base function for guest users and Zephyr realm users regarding the accessibility of the information of other users in the realm.
This commit is contained in:
committed by
Tim Abbott
parent
7f32c26731
commit
4483e33102
@@ -146,7 +146,7 @@ def gather_hot_conversations(user_profile: UserProfile, stream_messages: QuerySe
|
||||
def gather_new_users(user_profile: UserProfile, threshold: datetime.datetime) -> Tuple[int, List[str]]:
|
||||
# Gather information on users in the realm who have recently
|
||||
# joined.
|
||||
if user_profile.realm.is_zephyr_mirror_realm:
|
||||
if not user_profile.can_access_all_realm_members():
|
||||
new_users = [] # type: List[UserProfile]
|
||||
else:
|
||||
new_users = list(UserProfile.objects.filter(
|
||||
|
||||
Reference in New Issue
Block a user