summaryrefslogtreecommitdiff
path: root/lib/gitlab/build_access.rb
blob: 08a8f846ca564094fca532f3ad74240a314564a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Gitlab
  class BuildAccess < UserAccess
    attr_accessor :user, :project

    # 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