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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update MeetingAgendaItem#editable? method
Dombi Attilac74c18607d89
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erbindex a8d99a5baa6..9634f694505 100644--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb@@ -67,7 +67,7 @@grid.with_area(:actions, tag: :div, justify_self: :end) dorender(Primer::Alpha::ActionMenu.new) do |menu|menu.with_show_button(icon: "kebab-horizontal", 'aria-label': t("label_agenda_item_actions"), scheme: :invisible, test_selector: 'op-meeting-agenda-actions')- edit_action_item(menu) unless @meeting_agenda_item.deleted_work_package?+ edit_action_item(menu) if @meeting_agenda_item.editable?move_actions(menu)delete_action_item(menu)end if edit_enabled?diff --git a/modules/meeting/app/models/meeting_agenda_item.rb b/modules/meeting/app/models/meeting_agenda_item.rbindex 6bb1c353d92..348b69067cf 100644--- a/modules/meeting/app/models/meeting_agenda_item.rb+++ b/modules/meeting/app/models/meeting_agenda_item.rb@@ -74,6 +74,6 @@ class MeetingAgendaItem < ApplicationRecordenddef editable?- !meeting&.closed?+ !meeting&.closed? && !deleted_work_package?endend