zulip/zerver/models
Sahil Batra 7a6135371e settings: Handle guests separately for group-based settings.
This commit adds code to handle guests separately for group
based settings, where guest will only have permission if
that particular setting can be set to "role:everyone" group
even if the guest user is part of the group which is used
for that setting. This is to make sure that guests do not
get permissions for actions that we generally do not want
guests to have.

Currently the guests do not have permission for most of them
except for "Who can delete any message", where guest could
delete a message if the setting was set to a user defined
group with guest being its member. But this commit still
update the code to use the new function for all the settings
as we want to have a consistent pattern of how to check whether
a user has permission for group-based settings.
2024-09-18 11:51:11 -07:00
..
__init__.py upload: Generate thumbnails when images are uploaded. 2024-07-16 13:22:15 -07:00
alert_words.py models: Extract zerver.models.alert_words. 2023-12-16 22:08:44 -08:00
bots.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
clients.py clients: Drop "desktop app" substring check. 2024-08-01 09:23:16 -07:00
constants.py
custom_profile_fields.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
drafts.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
groups.py user_groups: Add `creator` and `date_created` field in user groups. 2024-09-13 18:44:58 -07:00
linkifiers.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
lookups.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
messages.py lint: Fix several duplicate word typos. 2024-09-10 15:59:00 -07:00
muted_users.py models: Extract zerver.models.muted_users. 2023-12-16 22:08:44 -08:00
onboarding_steps.py compose: Show banner to explain non interleaved view messages fading. 2024-07-16 13:52:29 -07:00
prereg_users.py invites: Add option to receive notification on accepted invitations. 2024-07-05 17:14:45 -07:00
presence.py mypy: Reenable explicit-override for models. 2024-08-01 17:39:04 -07:00
push_notifications.py mypy: Reenable explicit-override for models. 2024-08-01 17:39:04 -07:00
realm_audit_logs.py user_groups: Add API support for deactivating user groups. 2024-09-11 09:43:56 -07:00
realm_emoji.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
realm_playgrounds.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
realms.py models: Clean up CommonMessagePolicyEnum. 2024-09-12 09:36:02 -07:00
recipients.py mypy: Remove use of ValuesQuerySet and QuerySetAny. 2024-08-24 17:30:41 -07:00
scheduled_jobs.py mypy: Reenable explicit-override for models. 2024-08-01 17:39:04 -07:00
streams.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
user_activity.py models: Migrate ids of all non-Message-related tables to bigint. 2024-06-05 11:48:27 -07:00
user_topics.py models: Extract zerver.models.user_topics. 2023-12-16 22:08:44 -08:00
users.py settings: Handle guests separately for group-based settings. 2024-09-18 11:51:11 -07:00