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
Check permission before displaying option
Mir Bhatia506731c17b4a
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rbindex d8e7a1d6e52..e02f3904a7e 100644--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb@@ -63,7 +63,8 @@ module MeetingAgendaItems@meeting_agenda_item.editable? &&@meeting.in_progress? &&!@meeting_agenda_item.outcomes.exists? &&- !@meeting_agenda_item.in_backlog?+ !@meeting_agenda_item.in_backlog? &&+ User.current.allowed_in_project?(:manage_outcomes, @meeting.project)enddef first?diff --git a/modules/meeting/spec/features/meeting_outcomes_crud_spec.rb b/modules/meeting/spec/features/meeting_outcomes_crud_spec.rbindex bc5ed6dbb1b..87fc94d2f8a 100644--- a/modules/meeting/spec/features/meeting_outcomes_crud_spec.rb+++ b/modules/meeting/spec/features/meeting_outcomes_crud_spec.rb@@ -167,6 +167,10 @@ RSpec.describe "Meeting Outcomes CRUD", :js doshow_page.expect_outcome "Existing outcome"show_page.expect_no_outcome_actionsshow_page.expect_no_outcome_button++ # Fixes #63535+ item = MeetingAgendaItem.find_by(id: wp_agenda_item.id)+ show_page.expect_no_outcome_action(item)endendend