Add a config option to block all room invites (#2457)

- allows sysadmins the ability to lock down their servers so that people can't
send their users room invites.
This commit is contained in:
Richard van der Hoff 2017-09-19 16:08:14 +01:00 committed by GitHub
parent 2eabdf3f98
commit aa620d09a0
5 changed files with 44 additions and 0 deletions

View file

@ -56,6 +56,7 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs):
config.worker_replication_url = ""
config.worker_app = None
config.email_enable_notifs = False
config.block_non_admin_invites = False
config.use_frozen_dicts = True
config.database_config = {"name": "sqlite3"}