Commit a801f0bd authored by Mayra Cabrera's avatar Mayra Cabrera

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
parent 7fe81c79
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment