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

close code review issues & hints https://github.com/opf/openproject/pull/19756#discussion_r2275892911

as-op4fb6c5a95e17
diff --git a/app/models/projects/exports/pdf_export/report.rb b/app/models/projects/exports/pdf_export/report.rb
index 8fa3eef235e..34101f5ea10 100644
--- a/app/models/projects/exports/pdf_export/report.rb
+++ b/app/models/projects/exports/pdf_export/report.rb
@@ -166,7 +166,7 @@ module Projects::Exports::PDFExport
end
def can_view_attribute?(_project, attribute)
- attribute.nil? || %i[name favored].include?(attribute)
+ attribute && %i[name favored].exclude?(attribute)
end
def user_can_view_project_phases?(project)