zulip/zerver
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
..
actions settings: Add two realm settings to restrict direct messages. 2024-07-08 19:34:17 -07:00
data_import slack: Store the content-type of realm icons. 2024-07-11 07:31:39 -07:00
integration_fixtures/nagios
lib settings: Allow settings to be set to system groups only in production. 2024-07-12 09:51:49 -07:00
management refactor: Rename `Huddle` Django model class to `DirectMessageGroup`. 2024-07-07 21:31:30 -07:00
migrations thumbnail: Log and revert to gravatar on migration failure. 2024-07-11 07:31:39 -07:00
models onboarding: Modify message that welcome bot does not understand. 2024-07-09 13:08:02 -07:00
openapi settings: Remove private_message_policy setting. 2024-07-08 19:34:17 -07:00
tests settings: Allow settings to be set to system groups only in production. 2024-07-12 09:51:49 -07:00
tornado ruff: Fix FURB167 Use of regular expression alias. 2024-06-30 22:37:15 -07:00
transaction_tests user_groups: Create NamedUserGroup objects when creating new groups. 2024-04-26 17:03:09 -07:00
views upload: Pass down content-type of realm icon/logo to backend. 2024-07-11 07:31:39 -07:00
webhooks integration-docs: Update Linear for new doc format. 2024-07-09 13:41:06 -07:00
worker requirements: Upgrade Python requirements. 2024-06-27 15:31:43 -07:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py sentry: Untangle from page_params. 2024-06-22 18:53:56 -07:00
decorator.py test_decorators: Replace some deleted tests. 2024-03-29 09:39:34 -07:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py emails: Replace occurrences of uri with url in email templates. 2024-05-24 11:18:35 -07:00
logging_handlers.py
middleware.py portico: Improve message for deactivated, invalid and moved orgs. 2024-05-13 12:44:20 -07:00
signals.py ruff: Fix UP036 Version block is outdated for minimum Python version. 2024-04-01 18:32:52 -07:00