debian-mirror-gitlab/lib/gitlab/build_access.rb
2018-12-13 13:39:08 +05:30

15 lines
366 B
Ruby

# frozen_string_literal: true
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