diff --git a/lib/wizard/builder.rb b/lib/wizard/builder.rb index 867d2a310c6..56e6bc4a32f 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')