Add comment in create_user_backend about not needing to invite users first.

This commit is contained in:
Reid Barton
2016-02-07 10:50:20 -05:00
parent d05bdbd919
commit 4e5f18407d

View File

@@ -1083,6 +1083,8 @@ def create_user_backend(request, user_profile, email=REQ, password=REQ,
return json_error('Bad name or username')
# Check that the new user's email address belongs to the admin's realm
# (Since this is an admin API, we don't require the user to have been
# invited first.)
realm = user_profile.realm
domain = resolve_email_to_domain(email)
if realm.domain != domain: