synapse/groups/groups_server.py
def _parse_visibility_dict(visibility):
    """Given a dict for the "m.visibility" config return if the entity should
    be public or not
    """
    vis_type = visibility.get("type")
    if not vis_type:
        return True

    if vis_type not in ("public", "private"):
        raise SynapseError(
            400, "Synapse only supports 'public'/'private' visibility"
        )
    return vis_type == "public"
Given a dict for the "m.visibility" config return if the entity should
    be public or not
    
Given a dict for the "m.visibility" config return if the entity should
be public or not
Given a dict for the " m . visibility " config return if the entity should be public or not
def _parse_visibility_dict(visibility):
    vis_type = visibility.get("type")
    if not vis_type:
        return True
    if vis_type not in ("public", "private"):
        raise SynapseError(
            400, "Synapse only supports 'public'/'private' visibility"
        )
    return vis_type == "public"
def _parse_visibility_dict ( visibility ) : vis_type = visibility . get ( "type" ) if not vis_type : return True if vis_type not in ( "public" , "private" ) : raise SynapseError ( 400 , "Synapse only supports 'public'/'private' visibility" ) return vis_type == "public"
Given a dict for the "m.visibility" config return if the entity should
be public or not
Given a dict for the " m . visibility " config return if the entity should be public or not
"""Given a dict for the "m.visibility" config return if the entity should
    be public or not
    """
visibility