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

Use correct permission check as `edit_enabled?` is not implemented for the header_component

Henriette Dargeeb1729b7f13a
diff --git a/modules/meeting/app/components/meetings/header_component.rb b/modules/meeting/app/components/meetings/header_component.rb
index 181d6910bc8..7c350c9fc20 100644
--- a/modules/meeting/app/components/meetings/header_component.rb
+++ b/modules/meeting/app/components/meetings/header_component.rb
@@ -45,7 +45,7 @@ module Meetings
when :show
show_partial
when :edit
- edit_partial if edit_enabled?
+ edit_partial if @meeting.editable?
end
end
end