gitlab-org--gitlab-foss/lib/gitlab/ci_access.rb
2017-06-05 05:32:26 -07:00

9 lines
260 B
Ruby

module Gitlab
# For backwards compatibility, generic CI (which is a build without a user) is
# allowed to :build_download_code without any other checks.
class CiAccess
def can_do_action?(action)
action == :build_download_code
end
end
end