misc: ignore email attribute for disabled users (#42428)
This commit is contained in:
parent
f2e8550997
commit
83e341c9d9
|
@ -1269,7 +1269,7 @@ class FormDef(StorableObject):
|
|||
return v
|
||||
|
||||
# if nothing was found, get email from user profile
|
||||
if formdata.user and formdata.user.email:
|
||||
if formdata.user and formdata.user.email and formdata.user.is_active:
|
||||
return formdata.user.email
|
||||
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue