zulip/zerver
Shelly 6d92534d51 models: Add setters for is_realm_owner and is_moderator.
This fixes a regression where one could end up deactivating all owners
of a realm when trying to synchronize LDAP with the `is_realm_admin`
flag configured in `AUTH_LDAP_USER_FLAGS_BY_GROUP`.

With tweaks by tabbott to add is_moderator as well.

Fixes #18677.
2021-09-07 17:15:39 -07:00
..
data_import python: Remove locally dead code. 2021-08-19 01:51:37 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib docs: Inline code spans are not blocks. 2021-09-07 16:12:39 -07:00
management outgoing_http: Use OutgoingSession subclasses in more places. 2021-09-01 05:34:13 -07:00
migrations models: Rename setting-changed RealmAuditLog entry. 2021-09-07 10:49:56 -07:00
openapi api: Rename system user group used in api docs example. 2021-09-01 13:05:33 -07:00
tests models: Add setters for is_realm_owner and is_moderator. 2021-09-07 17:15:39 -07:00
tornado Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
views refactor: Rename do_set_user_display_setting to do_set_user_setting. 2021-09-07 10:16:42 -07:00
webhooks request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
worker Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
decorator.py request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py send_email: Log IP address sources (and more realms) of send_email. 2021-08-31 16:36:42 -07:00
logging_handlers.py logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting. 2021-07-07 09:26:02 -07:00
middleware.py request: Refactor ZulipRequestNotes to RequestNotes. 2021-09-03 08:48:45 -07:00
models.py models: Add setters for is_realm_owner and is_moderator. 2021-09-07 17:15:39 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00