diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-05-02 09:21:29 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-05-02 11:05:11 +0100 |
commit | 84196cb2310ca55100f32cfecbc62810085418e5 (patch) | |
tree | ac2ff0eb7a0ea87bbb8741269913d1a5d8eefb1f /synapse/config/server.py | |
parent | Merge pull request #5116 from matrix-org/babolivier/account_expiration (diff) | |
download | synapse-84196cb2310ca55100f32cfecbc62810085418e5.tar.xz |
Add some limitations to alias creation
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r-- | synapse/config/server.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index cdf1e4d286..b1c9d25c71 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -134,6 +134,12 @@ class ServerConfig(Config): # sending out any replication updates. self.replication_torture_level = config.get("replication_torture_level") + # Whether to require a user to be in the room to add an alias to it. + # Defaults to True. + self.require_membership_for_aliases = config.get( + "require_membership_for_aliases", True, + ) + self.listeners = [] for listener in config.get("listeners", []): if not isinstance(listener.get("port", None), int): @@ -490,6 +496,11 @@ class ServerConfig(Config): # Used by phonehome stats to group together related servers. #server_context: context + + # Whether to require a user to be in the room to add an alias to it. + # Defaults to 'true'. + # + #require_membership_for_aliases: false """ % locals() def read_arguments(self, args): |