diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-06-28 21:42:13 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 18:36:19 +0900 |
commit | e1ba0058118d7717d0f14e8b39f90fde5ed80907 (patch) | |
tree | f6923287dfbf536e5f5f665363f41f33e6de1ea0 /app/controllers/projects/pipeline_schedules_controller.rb | |
parent | 8889bb63f79f020ac9fbe2ba15dc9bc1909a4a69 (diff) | |
download | gitlab-ce-e1ba0058118d7717d0f14e8b39f90fde5ed80907.tar.gz |
zh nich catches 2
Diffstat (limited to 'app/controllers/projects/pipeline_schedules_controller.rb')
-rw-r--r-- | app/controllers/projects/pipeline_schedules_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/pipeline_schedules_controller.rb b/app/controllers/projects/pipeline_schedules_controller.rb index 9bcdfc2b510..f0ac0e7098c 100644 --- a/app/controllers/projects/pipeline_schedules_controller.rb +++ b/app/controllers/projects/pipeline_schedules_controller.rb @@ -1,9 +1,9 @@ class Projects::PipelineSchedulesController < Projects::ApplicationController - before_action :schedule, only: [:edit, :update, :destroy, :take_ownership] + before_action :schedule, except: [:index, :new, :create] before_action :authorize_read_pipeline_schedule! before_action :authorize_create_pipeline_schedule!, only: [:new, :create] - before_action :authorize_update_pipeline_schedule!, only: [:edit, :take_ownership, :update] + before_action :authorize_update_pipeline_schedule!, except: [:index, :new, :create] before_action :authorize_admin_pipeline_schedule!, only: [:destroy] def index |