Use authorize_update_pipeline_schedule in PipelineSchedulesController
This commit is contained in:
parent
a7f114b136
commit
d67b5c099e
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
class Projects::PipelineSchedulesController < Projects::ApplicationController
|
||||
before_action :authorize_read_pipeline_schedule!
|
||||
before_action :authorize_create_pipeline_schedule!, only: [:new, :create, :edit, :take_ownership, :update]
|
||||
before_action :authorize_create_pipeline_schedule!, only: [:new, :create]
|
||||
before_action :authorize_update_pipeline_schedule!, only: [:edit, :take_ownership, :update]
|
||||
before_action :authorize_admin_pipeline_schedule!, only: [:destroy]
|
||||
|
||||
before_action :schedule, only: [:edit, :update, :destroy, :take_ownership]
|
||||
|
|
Loading…
Reference in a new issue