Janitor pruner: don't demote admins
This commit is contained in:
@@ -11,6 +11,8 @@ class JanitorPruner
|
|||||||
|
|
||||||
inactive_janitors.each do |user|
|
inactive_janitors.each do |user|
|
||||||
CurrentUser.scoped(admin, "127.0.0.1") do
|
CurrentUser.scoped(admin, "127.0.0.1") do
|
||||||
|
next if user.is_admin?
|
||||||
|
|
||||||
janitor_trial = JanitorTrial.where(user_id: user.id).first
|
janitor_trial = JanitorTrial.where(user_id: user.id).first
|
||||||
|
|
||||||
if janitor_trial && user.can_approve_posts?
|
if janitor_trial && user.can_approve_posts?
|
||||||
|
|||||||
Reference in New Issue
Block a user