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

build_access.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 817596937491b8109177078e209022faa15d7a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Gitlab
  class BuildAccess < UserAccess
    # This bypasses the `can?(:access_git)`-check we normally do in `UserAccess`
    # for CI. That way if a user was able to trigger a pipeline, then the
    # build is allowed to clone the project.
    def can_access_git?
      true
    end
  end
end