diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-11 19:40:27 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-11 19:40:27 -0600 |
commit | 6d6f6b3385ef93105d403d3a786c8299c06829f4 (patch) | |
tree | 28a138a982f4c71b2c69b390f0c7afb1fe3954ac /app | |
parent | f2e9f4303e5e91bc05be771506027c0eb1850ccf (diff) |
skip spam check if invite-only registration
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index c7b002024..635025965 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -535,7 +535,7 @@ class User < ApplicationRecord end def detect_spam! - return false if valid_invitation? || external? + return false if valid_invitation? || external? || Setting.registrations_mode == 'none' janitor = janitor_account || Account.representative |