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:
Luke Faraone
2013-08-11 15:57:54 -07:00
parent f3c8806d30
commit 0cb741d7cc
4 changed files with 9 additions and 17 deletions

View File

@@ -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)