mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 09:48:18 +08:00
Show staff count on invites page, don't warn if you have 3
This commit is contained in:
@ -209,6 +209,10 @@ class Wizard
|
||||
end
|
||||
|
||||
@wizard.append_step('invites') do |step|
|
||||
|
||||
staff_count = User.where("moderator = true or admin = true").where("id <> ?", Discourse.system_user.id).count
|
||||
step.add_field(id: 'staff_count', type: 'component', value: staff_count)
|
||||
|
||||
step.add_field(id: 'invite_list', type: 'component')
|
||||
|
||||
step.on_update do |updater|
|
||||
|
Reference in New Issue
Block a user