diff options
Diffstat (limited to 'app/helpers/ci/pipeline_editor_helper.rb')
-rw-r--r-- | app/helpers/ci/pipeline_editor_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/ci/pipeline_editor_helper.rb b/app/helpers/ci/pipeline_editor_helper.rb new file mode 100644 index 00000000000..3f48b2687b9 --- /dev/null +++ b/app/helpers/ci/pipeline_editor_helper.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Ci + module PipelineEditorHelper + include ChecksCollaboration + + def can_view_pipeline_editor?(project) + can_collaborate_with_project?(project) && + Gitlab::Ci::Features.ci_pipeline_editor_page_enabled?(project) + end + end +end |