zulip/zerver
sahil839 3a7de8ad3b models: Add has_permission as a generic function for different policies.
This commit removes can_create_streams and can_subscribe_other_users
to use has_permission as a generic function in UserProfile model for
these settings policies.

Relevant changes are made to events.py to avoid duplication at some
places.
2020-04-22 17:48:52 -07:00
..
data_import python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
lib models: Add has_permission as a generic function for different policies. 2020-04-22 17:48:52 -07:00
management python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
migrations python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
openapi python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
templatetags python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
tests python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
tornado python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
views python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
webhooks python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
worker python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
__init__.py
apps.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
context_processors.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
decorator.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
filters.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
forms.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
logging_handlers.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
middleware.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
models.py models: Add has_permission as a generic function for different policies. 2020-04-22 17:48:52 -07:00
signals.py emails: Translate from_name of account security emails. 2020-02-18 17:45:33 -08:00