Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pipeline_editor_controller.rb « ci « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2428270fa664d43fcdd19c97c6394f01bfb0a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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