diff options
Diffstat (limited to 'app/controllers/projects/pipelines/stages_controller.rb')
-rw-r--r-- | app/controllers/projects/pipelines/stages_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/pipelines/stages_controller.rb b/app/controllers/projects/pipelines/stages_controller.rb index 0447bbf29e7..c94d468cf2e 100644 --- a/app/controllers/projects/pipelines/stages_controller.rb +++ b/app/controllers/projects/pipelines/stages_controller.rb @@ -4,6 +4,7 @@ module Projects module Pipelines class StagesController < Projects::Pipelines::ApplicationController before_action :authorize_update_pipeline! + before_action :stage, only: [:play_manual] urgency :low, [ :play_manual @@ -26,7 +27,7 @@ module Projects private def stage - @pipeline_stage ||= pipeline.find_stage_by_name!(params[:stage_name]) + @stage ||= pipeline.stage(params[:stage_name]).presence || render_404 end end end |