about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
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