mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
actions: Remove unnecessary domain in validate_user_access_to_subscribers.
validate_user_access_to_subscribers_helper never uses stream_dict['realm__domain']. I imagine it was there originally to do the is_zephyr_mirror_realm check.
This commit is contained in:
parent
b4ac768568
commit
7dc7b1653c
@ -1388,8 +1388,7 @@ def validate_user_access_to_subscribers(user_profile, stream):
|
||||
"""
|
||||
validate_user_access_to_subscribers_helper(
|
||||
user_profile,
|
||||
{"realm__domain": stream.realm.domain,
|
||||
"realm_id": stream.realm_id,
|
||||
{"realm_id": stream.realm_id,
|
||||
"invite_only": stream.invite_only},
|
||||
# We use a lambda here so that we only compute whether the
|
||||
# user is subscribed if we have to
|
||||
|
||||
Loading…
Reference in New Issue
Block a user