Commit 0a042893 authored by Corinna Wiesner's avatar Corinna Wiesner

Remove admin user count from Users statistics

Avoid confusion of the statistics counts due to admin users also being
listed in the numbers for Users with highest role statistics.
parent 3a0fc1b9
......@@ -17,7 +17,6 @@ module EE
end
def stats
@admin_count = ::User.admins.count
@roles_count = ::ProjectAuthorization.roles_stats
end
......
......@@ -7,12 +7,6 @@
%td
= User.count
- if @admin_count
%tr
%td Admin users
%td
= @admin_count
- if @roles_count
- @roles_count.each do |row|
%tr
......
---
title: Remove admin user count from Users statistics
merge_request: 25337
author:
type: changed
......@@ -24,7 +24,6 @@ describe 'Admin Dashboard' do
it 'show correct amount of users per role' do
visit admin_dashboard_stats_path
expect(page).to have_content('Admin users 1')
expect(page).to have_content('Users with highest role developer 2')
expect(page).to have_content('Users with highest role reporter 1')
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment