2018-10-22 03:00:50 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-10 10:13:05 -04:00
|
|
|
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
|