debian-mirror-gitlab/app/controllers/projects/ci/pipeline_editor_controller.rb
2023-07-09 08:55:56 +05:30

22 lines
506 B
Ruby

# frozen_string_literal: true
class Projects::Ci::PipelineEditorController < Projects::ApplicationController
before_action :check_can_collaborate!
before_action do
push_frontend_feature_flag(:ci_job_assistant_drawer, @project)
push_frontend_feature_flag(:ai_ci_config_generator, @project)
end
feature_category :pipeline_composition
urgency :low, [:show]
def show
end
private
def check_can_collaborate!
render_404 unless can_collaborate_with_project?(@project)
end
end