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:
authorMayra Cabrera <mcabrera@gitlab.com>2018-03-22 00:24:49 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2018-03-27 02:03:12 +0300
commit56c95fb6a157be67c11172e16c5417bbcf168eb0 (patch)
tree0e27130532bb7b47b96439d65616c3d009e4e985 /app/controllers/projects/ci
parentb5b41d38142cb43c6aac21ce06df5b48e4f58513 (diff)
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.rb6
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