skip spam check if invite-only registration
parent
f2e9f4303e
commit
6d6f6b3385
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue