Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

skip builtin users in all counts (since anon and system are now active too, and deleted is blocked)

Markus Kahla311fe1b7bca
diff --git a/app/models/user/status_options.rb b/app/models/user/status_options.rb
index 23d4ac8c9e5..e53e76c5793 100644
--- a/app/models/user/status_options.rb
+++ b/app/models/user/status_options.rb
@@ -33,9 +33,9 @@ class User
def symbolic_user_counts
{
- blocked: User.blocked.count,
+ blocked: User.not_builtin.blocked.count, # not_builtin to skip DeletedUser
all: User.not_builtin.count,
- active: User.active.not_blocked.count
+ active: User.not_builtin.active.not_blocked.count # not_builtin to skip Anonymous and System users
}
end
end