mirror of https://github.com/zulip/zulip.git
ffb7744974
We use the already existing server level setting to only allow settings to be set to system groups, not a named user defined group as well, in production. But we allow to settings to be set to any named or anonymous user group in tests and development server. "can_mention_group" setting can be set to user defined groups because some of the realms already do that in production. The existing server level setting is also renamed to make it clear that both user defined groups and anonymous groups are not allowed if that setting is set to False. This commit also changes the error message to be consistent for the case when a setting cannot be set to user defined groups as per server level and setting and when a particular setting cannot be set to user defined groups due to the configuration of that particular setting. For this we add a new class SystemGroupRequiredError in exceptions.py so that we need not re-write the error message in multiple places. |
||
---|---|---|
.. | ||
jinja2 | ||
__init__.py | ||
backends.py | ||
computed_settings.py | ||
config.py | ||
configured_settings.py | ||
default_settings.py | ||
dev_settings.py | ||
dev_urls.py | ||
email_backends.py | ||
prod_settings.pyi | ||
prod_settings_template.py | ||
sentry.py | ||
settings.py | ||
settings_types.py | ||
template_loaders.py | ||
test_extra_settings.py | ||
test_settings.py | ||
urls.py | ||
wsgi.py |