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:
Rishi Gupta 2017-03-13 11:52:38 -07:00 committed by Tim Abbott
parent b4ac768568
commit 7dc7b1653c

View File

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