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

further prevent loading of the dashbords module in production

ulfertsbbde58eb1c81
diff --git a/modules/dashboards/lib/dashboards/engine.rb b/modules/dashboards/lib/dashboards/engine.rb
index 9e90ce57670..69eb4284d15 100644
--- a/modules/dashboards/lib/dashboards/engine.rb
+++ b/modules/dashboards/lib/dashboards/engine.rb
@@ -21,7 +21,7 @@ module Dashboards
initializer 'dashboards.permissions' do
Rails.application.reloader.to_prepare do
- # deactivate for now
+ # Deactivate for now since the module isn't loaded in production
next unless Rails.env.test?
OpenProject::AccessControl.map do |ac_map|
@@ -44,6 +44,9 @@ module Dashboards
end
config.to_prepare do
+ # Deactivate for now since the module isn't loaded in production
+ next unless Rails.env.test?
+
Dashboards::GridRegistration.register!
end
end