about summary refs log tree commit diff
path: root/app/validators
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-05-19 22:07:42 +0200
committerGitHub <noreply@github.com>2019-05-19 22:07:42 +0200
commit0998e3ade8b03174c0a69ba4f78b31f92ccc1ade (patch)
treef163dea0261fa79ca2052cd243ec9ac502b53cd2 /app/validators
parent46811f92e4b1705da5bb52e0e9e4e9e59ea1a15e (diff)
parent08a2af27c3353555d729255fc42f6d49af20ed52 (diff)
Merge pull request #1055 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/blacklisted_email_validator.rb2
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