From 88ee054e14291d8e140238c6dcbb67bf591ab60a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 1 Jun 2017 11:20:32 -0400 Subject: [PATCH] FIX: Restrict wizard staff count to human users --- lib/wizard/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wizard/builder.rb b/lib/wizard/builder.rb index 867d2a310c..56e6bc4a32 100644 --- a/lib/wizard/builder.rb +++ b/lib/wizard/builder.rb @@ -214,7 +214,7 @@ class Wizard @wizard.append_step('invites') do |step| - staff_count = User.where("moderator = true or admin = true").where("id <> ?", Discourse.system_user.id).count + staff_count = User.staff.human_users.count step.add_field(id: 'staff_count', type: 'component', value: staff_count) step.add_field(id: 'invite_list', type: 'component')