summaryrefslogtreecommitdiff
path: root/app/controllers/projects/pipeline_schedules_controller.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-06-28 21:42:13 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-05 18:36:19 +0900
commite1ba0058118d7717d0f14e8b39f90fde5ed80907 (patch)
treef6923287dfbf536e5f5f665363f41f33e6de1ea0 /app/controllers/projects/pipeline_schedules_controller.rb
parent8889bb63f79f020ac9fbe2ba15dc9bc1909a4a69 (diff)
downloadgitlab-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.rb4
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