From aabf1d3002c0a54c7915097eab93db06a8d1ab58 Mon Sep 17 00:00:00 2001 From: Pablo Brasero Date: Wed, 3 Dec 2025 16:44:10 +0000 Subject: [PATCH] Confirmed users can be suspended --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 8c641b9a0..150e2fcd1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -220,7 +220,7 @@ class User < ApplicationRecord close_open_issues end - transitions :from => [:pending, :active], :to => :suspended + transitions :from => [:pending, :active, :confirmed], :to => :suspended end # Unsuspending an account moves it back to active without overriding the spam scoring @@ -402,7 +402,7 @@ class User < ApplicationRecord ## # perform a spam check on a user def spam_check - suspend! if may_suspend? && spam_score > Settings.spam_threshold + suspend! if !confirmed? && may_suspend? && spam_score > Settings.spam_threshold end ## -- 2.39.5