diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-03-21 15:24:49 -0600 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-03-26 17:03:12 -0600 |
commit | 56c95fb6a157be67c11172e16c5417bbcf168eb0 (patch) | |
tree | 0e27130532bb7b47b96439d65616c3d009e4e985 /app/controllers/projects/ci | |
parent | b5b41d38142cb43c6aac21ce06df5b48e4f58513 (diff) | |
download | gitlab-ce-56c95fb6a157be67c11172e16c5417bbcf168eb0.tar.gz |
Changes ci/lints controller to use authorize before action
Also includes a comment on Ci::Config regarding that's going to be
override by EE
Diffstat (limited to 'app/controllers/projects/ci')
-rw-r--r-- | app/controllers/projects/ci/lints_controller.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/projects/ci/lints_controller.rb b/app/controllers/projects/ci/lints_controller.rb index 47328504cd5..a2185572a20 100644 --- a/app/controllers/projects/ci/lints_controller.rb +++ b/app/controllers/projects/ci/lints_controller.rb @@ -1,5 +1,5 @@ class Projects::Ci::LintsController < Projects::ApplicationController - before_action :ensure_user_access + before_action :authorize_create_pipeline! def show end @@ -24,8 +24,4 @@ class Projects::Ci::LintsController < Projects::ApplicationController def yaml_processor_options { project: @project, sha: project.repository.commit.sha } end - - def ensure_user_access - return access_denied! unless can?(current_user, :create_pipeline, @project) - end end |