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

[31650] Avoid builtin in user limit

Oliver Günthercc93c3ccc96e
diff --git a/lib/open_project/enterprise.rb b/lib/open_project/enterprise.rb
index a65e0061033..68aebb14a08 100644
--- a/lib/open_project/enterprise.rb
+++ b/lib/open_project/enterprise.rb
@@ -46,7 +46,7 @@ module OpenProject
end
def active_user_count
- User.active.count
+ User.not_builtin.active.count
end
##
@@ -61,7 +61,7 @@ module OpenProject
# While the active user limit has not been reached yet it would be reached
# if all registered and invited users were to activate their accounts.
def imminent_user_limit?
- User.active_or_registered.count >= user_limit if user_limit
+ User.not_builtin.active_or_registered.count >= user_limit if user_limit
end
def fail_fast?