From 721a8eda29b75dbeae17886868a8b7cbe560245f Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 6 Oct 2015 15:05:17 -0700 Subject: [PATCH] fixes #2520: Automated janitor pruner should prune approvers, not janitors --- app/logical/janitor_pruner.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/logical/janitor_pruner.rb b/app/logical/janitor_pruner.rb index 718131a06..7c738e8e1 100644 --- a/app/logical/janitor_pruner.rb +++ b/app/logical/janitor_pruner.rb @@ -17,6 +17,8 @@ class JanitorPruner janitor_trial.demote! unknown_level = nil else + user.can_approve_posts = false + user.save user.promote_to!(User::Levels::PLATINUM, :skip_dmail => true) unknown_level = "\n\nYour previous user level was unknown so your user level has defaulted to Platinum. If you feel this to be in error please reply to this message with your original level." end