zulip/zproject
Sahil Batra ffb7744974 settings: Allow settings to be set to system groups only in production.
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.
2024-07-12 09:51:49 -07:00
..
jinja2 realm-deactivation: Send email to owners as part of deactivation. 2024-06-26 16:48:18 -07:00
__init__.py
backends.py upload: Remove redundant acting_user_profile argument. 2024-06-26 16:43:11 -07:00
computed_settings.py thumbnailing: Add pyvips dependency. 2024-06-20 23:06:08 -04:00
config.py config: Use logic from zulip_tools, to support bools. 2024-03-15 15:34:12 -07:00
configured_settings.py settings: Print about custom settings from runtornado. 2023-12-05 12:33:34 -08:00
default_settings.py settings: Allow settings to be set to system groups only in production. 2024-07-12 09:51:49 -07:00
dev_settings.py settings: Allow settings to be set to system groups only in production. 2024-07-12 09:51:49 -07:00
dev_urls.py dev_urls: Make requests to /docs redirect to the index. 2024-03-21 11:27:14 -07:00
email_backends.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
prod_settings_template.py s3: Allow setting a CloudFront URL prefix for avatar and emoji images. 2024-06-26 16:43:11 -07:00
sentry.py docs: Update Django links to our current version. 2024-05-24 10:18:37 -07:00
settings.py settings: Hide django_stubs_ext from mypy. 2024-04-17 16:49:03 -07:00
settings_types.py scim: Add config option to disable initial streams for guests. 2024-04-11 12:28:26 -07:00
template_loaders.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
test_extra_settings.py settings: Allow settings to be set to system groups only in production. 2024-07-12 09:51:49 -07:00
test_settings.py settings: Refactor how TEST_SUITE is configured. 2023-12-04 09:50:14 -08:00
urls.py urls: Update stale file name 'hotspots' to 'onboarding_steps'. 2024-06-18 09:39:50 -07:00
wsgi.py requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00