Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_subscription: Remove opaque reference to guest role.

Tim Abbott9f57961e5fb4
diff --git a/zerver/lib/stream_subscription.py b/zerver/lib/stream_subscription.py
index 4a4346d3613..43b048c20d4 100644
--- a/zerver/lib/stream_subscription.py
+++ b/zerver/lib/stream_subscription.py
@@ -275,6 +275,6 @@ def subscriber_ids_with_stream_history_access(stream: Stream) -> Set[int]:
return set(
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)
)