mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
By default, join policy is "invite"
This commit is contained in:
parent
b4478e586f
commit
6bd1b7053e
@ -905,7 +905,7 @@ def _parse_join_policy_dict(join_policy_dict):
|
|||||||
"""
|
"""
|
||||||
join_policy_type = join_policy_dict.get("type")
|
join_policy_type = join_policy_dict.get("type")
|
||||||
if not join_policy_type:
|
if not join_policy_type:
|
||||||
return True
|
return "invite"
|
||||||
|
|
||||||
if join_policy_type not in ("invite", "open"):
|
if join_policy_type not in ("invite", "open"):
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
|
Loading…
Reference in New Issue
Block a user