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, 'invite_only': stream.invite_only}, (lambda : subscribed_to_stream(user_profile, stream)))

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 , 'invite_only' : stream . invite_only } , ( lambda : subscribed_to_stream ( user_profile , stream ) ) )
validates whether the user can view the subscribers of a stream .