zulip/zerver
sahil839 a4c3224328 users: Remove redundant get_role_for_new_user in lib/create_user.py.
The function get_role_for_new_user was added to get role from the
invited_as value, as invited_as values were one of (1,2,3,4)
previously, but it was then changed to be the actual role value,
i.e. one of (100, 200, 400, 600), in 1f8f227444.

So, we can safely remove this function now and use invited_as value
directly and handle realm_creation case by using an if condition.
2021-04-30 15:57:09 -07:00
..
data_import models/realm: Add a model for storing realm playground information. 2021-04-07 08:20:53 +05:30
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib users: Remove redundant get_role_for_new_user in lib/create_user.py. 2021-04-30 15:57:09 -07:00
management mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
migrations audit log: Create audit log when a realm is created. 2021-04-30 09:25:11 -07:00
openapi events: Add 'is_moderator' field to the page_params object sent to clients. 2021-04-29 15:18:49 -07:00
templatetags dependencies: Upgrade to webpack-bundle-tracker 1.0.0-alpha.1. 2021-04-06 09:31:35 -07:00
tests push_notifications: Give full stack information on an exception. 2021-04-30 14:03:52 -07:00
tornado middleware: Add client_version attribute to request. 2021-04-29 17:03:40 -07:00
views users: Remove redundant get_role_for_new_user in lib/create_user.py. 2021-04-30 15:57:09 -07:00
webhooks mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
worker email: Open a single SMTP connection to send email batches. 2021-04-26 17:27:22 -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 context_processors: Remove unnecessary get_client_name call. 2021-04-29 17:47:32 -07:00
decorator.py middleware: Simplify logic for parsing user-agent. 2021-04-29 17:47:41 -07:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
logging_handlers.py docs: Capitalize “Markdown” consistently. 2021-04-26 09:31:08 -07:00
middleware.py middleware: Simplify logic for parsing user-agent. 2021-04-29 17:47:41 -07:00
models.py audit log: Create audit log when a realm is created. 2021-04-30 09:25:11 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00