skip spam check if invite-only registration

master
multiple creatures 2020-01-11 19:40:27 -06:00
parent f2e9f4303e
commit 6d6f6b3385
1 changed files with 1 additions and 1 deletions

View File

@ -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