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

Another fix for the other overview pages

Klaus Zanders8426b4088cb2
diff --git a/modules/grids/app/representers/api/v3/grids/grid_representer.rb b/modules/grids/app/representers/api/v3/grids/grid_representer.rb
index 5baad83d428..1de645ce46e 100644
--- a/modules/grids/app/representers/api/v3/grids/grid_representer.rb
+++ b/modules/grids/app/representers/api/v3/grids/grid_representer.rb
@@ -123,11 +123,13 @@ module API
private
def widget_visible?(widget)
+ return true unless represented.respond_to?(:project)
+
::Grids::Configuration.allowed_widget?(
represented.class,
widget.identifier,
current_user,
- represented.respond_to?(:project) ? represented.project : nil
+ represented.project
)
end