zulip/zerver
Sahil Batra f24f1bfd14 user_groups: Refactor code to check permission for updating groups.
Users with permission to manage the group have all the permissions
including joining/leaving the group, adding others group which also
have a separate setting to control them.

So, it makes sense to just check managing permissions first in
access_user_group_for_update and then check the specific permission.
There is no behavioral change in this commit, it only changes the
order of checking permissions.
2024-10-16 09:40:07 -07:00
..
actions custom_profile_fields: Make transaction no longer durable. 2024-10-14 16:30:46 -07:00
data_import data_import: Add email validation to third-party data converters. 2024-10-15 16:04:43 -07:00
integration_fixtures/nagios
lib user_groups: Refactor code to check permission for updating groups. 2024-10-16 09:40:07 -07:00
management scheduled_messages: Remove separate logfile. 2024-10-04 14:22:37 -07:00
migrations user_groups: Add can_leave_group setting for user group. 2024-10-14 11:44:27 -07:00
models groups: Enable group-settings value on groups in production. 2024-10-15 15:58:54 -07:00
openapi help: Update exports documentation. 2024-10-15 10:15:34 -07:00
tests user_groups: Fix permissions for joining the group. 2024-10-16 09:40:07 -07:00
tornado django_api: Rename 'send_event' to 'send_event_rollback_unsafe'. 2024-09-20 15:20:18 -07:00
transaction_tests user_groups: Add add_can_members_group to user group. 2024-10-11 16:31:18 -07:00
views user_groups: Refactor code to check permission for updating groups. 2024-10-16 09:40:07 -07:00
webhooks docs: Update existing links to use "channel" operator. 2024-10-11 17:00:23 -07:00
worker export_realm: Add RealmExport model. 2024-10-04 12:06:35 -07:00
__init__.py
apps.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
decorator.py upload: Use tusd for resumable, larger uploads. 2024-09-19 11:37:29 -07:00
filters.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
forms.py register: Ask which review site for how found zulip. 2024-09-27 13:23:08 -07:00
logging_handlers.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
signals.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00