zulip/zerver
sahil839 d6165225c4 models: Add can_invite_others_to_realm for checking who can send invites.
This commit adds can_invite_others_to_realm helper which will be used in
further in next commit when invite_to_realm_policy will be modified to
support all values of COMMON_POLICY_TYPES.

It is important for this commit's correctness that
INVITE_TO_REALM_POLICY_TYPES was initialized to use the same values.
2021-04-07 09:04:47 -07:00
..
data_import models/realm: Add a model for storing realm playground information. 2021-04-07 08:20:53 +05:30
lib settings: Replace invite_by_admins_policy with invite_to_realm_policy. 2021-04-07 09:02:33 -07:00
management refactor: Rename most of "filter" to "linkifier". 2021-04-05 18:14:07 -07:00
migrations settings: Replace invite_by_admins_policy with invite_to_realm_policy. 2021-04-07 09:02:33 -07:00
openapi settings: Replace invite_by_admins_policy with invite_to_realm_policy. 2021-04-07 09:02:33 -07:00
templatetags dependencies: Upgrade to webpack-bundle-tracker 1.0.0-alpha.1. 2021-04-06 09:31:35 -07:00
tests models: Add can_invite_others_to_realm for checking who can send invites. 2021-04-07 09:04:47 -07:00
tornado tornado: Explicitly mark requests as varying by cookie. 2021-04-02 14:55:22 -07:00
views settings: Replace invite_by_admins_policy with invite_to_realm_policy. 2021-04-07 09:02:33 -07:00
webhooks statuspage: Properly detect the update is for component or incident. 2021-03-30 12:06:09 -07:00
worker outgoing_webhook: Join build_bot_request and send_data_to_server. 2021-03-29 18:24:44 -07:00
__init__.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
decorator.py api: Add REALM_DEACTIVATED error code. 2021-03-31 08:46:13 -07:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
logging_handlers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
middleware.py middleware: Do not trust X-Forwarded-For; use X-Real-Ip, set from nginx. 2021-03-31 14:19:38 -07:00
models.py models: Add can_invite_others_to_realm for checking who can send invites. 2021-04-07 09:04:47 -07:00
signals.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00