about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-11 19:40:27 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-11 19:40:27 -0600
commit6d6f6b3385ef93105d403d3a786c8299c06829f4 (patch)
tree28a138a982f4c71b2c69b390f0c7afb1fe3954ac /app
parentf2e9f4303e5e91bc05be771506027c0eb1850ccf (diff)
skip spam check if invite-only registration
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
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