Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-06-28 15:42:13 +0300
committerShinya Maeda <shinya@gitlab.com>2017-07-05 12:38:28 +0300
commit5c91e10b9e1a3411075bd6597532be5655aa07c1 (patch)
tree19cfb80015433516e4aeba77f60437dd467eeffc /app/controllers/projects/pipeline_schedules_controller.rb
parentad30a5a9bba93dc771e70608d5afd06611437770 (diff)
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