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. |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
models | ||
openapi | ||
tests | ||
tornado | ||
transaction_tests | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
signals.py |