mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Fix transaction management in create_mit_user_if_needed.
(imported from commit 063eaf5180964ad32a6feb3c899a4cc5beea6fe9)
This commit is contained in:
@@ -107,6 +107,7 @@ def compute_mit_user_fullname(email):
|
||||
traceback.print_exc()
|
||||
return email.lower()
|
||||
|
||||
@transaction.commit_on_success
|
||||
def create_mit_user_if_needed(realm, email):
|
||||
try:
|
||||
return UserProfile.objects.get(user__email=email)
|
||||
|
||||
Reference in New Issue
Block a user