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

fix calling menu item condtion without project argument in admin controller

Ivan Kuchin9a547a42a4b5
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 8a554ac032f..790cdd4504a 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -43,7 +43,7 @@ class AdminController < ApplicationController
condition = node.condition
name === :admin_overview ||
- (condition && !condition.call) ||
+ (condition && !condition.call(nil)) ||
hidden_admin_menu_items.include?(name.to_s)
end