diff options
author | ThibG <thib@sitedethib.com> | 2019-05-19 21:40:36 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-05-19 21:40:36 +0200 |
commit | ae1838655876363065dd062a21064d385a90eb33 (patch) | |
tree | 27fb8d7cecb5b5ad79db1115a91968e5cfd07f7c /app/validators | |
parent | 37a04c329c2b859f6a3aeb11795aec1da2943160 (diff) |
Fix “invited by” not showing up for invited accounts in admin interface (#10791)
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/blacklisted_email_validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/blacklisted_email_validator.rb b/app/validators/blacklisted_email_validator.rb index a288c20ef..0d01a1c47 100644 --- a/app/validators/blacklisted_email_validator.rb +++ b/app/validators/blacklisted_email_validator.rb @@ -2,7 +2,7 @@ class BlacklistedEmailValidator < ActiveModel::Validator def validate(user) - return if user.invited? + return if user.valid_invitation? @email = user.email |