mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Removed confusing ALLOW_REGISTER setting.
ALLOW_REGISTER was no longer being used in determining whether you could register for the app, so I've removed it to avoid additional local-dev / production issues. This closes #1613. (imported from commit c928c6d350602d35f745ae1e60d734e4567885fc)
This commit is contained in:
@@ -1391,10 +1391,9 @@ def do_invite_users(user_profile, invitee_emails, streams):
|
||||
|
||||
# Redundant check in case earlier validation preventing MIT users from
|
||||
# inviting people fails.
|
||||
if settings.ALLOW_REGISTER == False:
|
||||
if "@mit.edu" in email:
|
||||
errors.append((email, "Invitations are not enabled for MIT at this time."))
|
||||
continue
|
||||
if "@mit.edu" in email:
|
||||
errors.append((email, "Invitations are not enabled for MIT at this time."))
|
||||
continue
|
||||
|
||||
try:
|
||||
user_email_is_unique(email)
|
||||
|
||||
Reference in New Issue
Block a user