17 lines
409 B
Ruby
17 lines
409 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Projects::Ci::PipelineEditorController < Projects::ApplicationController
|
|
before_action :check_can_collaborate!
|
|
|
|
feature_category :pipeline_authoring
|
|
|
|
def show
|
|
render_404 unless ::Gitlab::Ci::Features.ci_pipeline_editor_page_enabled?(@project)
|
|
end
|
|
|
|
private
|
|
|
|
def check_can_collaborate!
|
|
render_404 unless can_collaborate_with_project?(@project)
|
|
end
|
|
end
|