mirror of https://github.com/zulip/zulip.git
stream_subscription: Remove opaque reference to guest role.
This commit is contained in:
parent
bc6570eb67
commit
9f57961e5f
|
@ -275,6 +275,6 @@ def subscriber_ids_with_stream_history_access(stream: Stream) -> Set[int]:
|
||||||
|
|
||||||
return set(
|
return set(
|
||||||
subscriptions.filter(user_profile__is_active=True)
|
subscriptions.filter(user_profile__is_active=True)
|
||||||
.exclude(user_profile__role=600)
|
.exclude(user_profile__role=UserProfile.ROLE_GUEST)
|
||||||
.values_list("user_profile__id", flat=True)
|
.values_list("user_profile__id", flat=True)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue