stream_subscription: Remove opaque reference to guest role.

This commit is contained in:
Tim Abbott 2021-04-13 21:49:50 -07:00
parent bc6570eb67
commit 9f57961e5f
1 changed files with 1 additions and 1 deletions

View File

@ -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)
) )