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