synapse/groups/groups_server.py
def _parse_join_policy_dict(join_policy_dict):
    """Given a dict for the "m.join_policy" config return the join policy specified
    """
    join_policy_type = join_policy_dict.get("type")
    if not join_policy_type:
        return "invite"

    if join_policy_type not in ("invite", "open"):
        raise SynapseError(
            400, "Synapse only supports 'invite'/'open' join rule"
        )
    return join_policy_type
Given a dict for the "m.join_policy" config return the join policy specified
    
Given a dict for the "m.join_policy" config return the join policy specified
Given a dict for the " m . join_policy " config return the join policy specified
def _parse_join_policy_dict(join_policy_dict):
    join_policy_type = join_policy_dict.get("type")
    if not join_policy_type:
        return "invite"
    if join_policy_type not in ("invite", "open"):
        raise SynapseError(
            400, "Synapse only supports 'invite'/'open' join rule"
        )
    return join_policy_type
def _parse_join_policy_dict ( join_policy_dict ) : join_policy_type = join_policy_dict . get ( "type" ) if not join_policy_type : return "invite" if join_policy_type not in ( "invite" , "open" ) : raise SynapseError ( 400 , "Synapse only supports 'invite'/'open' join rule" ) return join_policy_type
Given a dict for the "m.join_policy" config return the join policy specified
Given a dict for the " m . join_policy " config return the join policy specified
"""Given a dict for the "m.join_policy" config return the join policy specified
    """
join_policy_dict