fixes #2520: Automated janitor pruner should prune approvers, not janitors

This commit is contained in:
r888888888
2015-10-06 15:05:17 -07:00
parent 6ce5223399
commit 721a8eda29

View File

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