FIX: Restrict wizard staff count to human users

This commit is contained in:
Robin Ward 2017-06-01 11:20:32 -04:00
parent 76510d695f
commit 88ee054e14
1 changed files with 1 additions and 1 deletions

View File

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