Class: Gitlab::CiAccess

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci_access.rb

Overview

For backwards compatibility, generic CI (which is a build without a user) is allowed to :build_download_code without any other checks.

Instance Method Summary collapse

Instance Method Details

#can_do_action?(action) ⇒ Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/gitlab/ci_access.rb', line 7

def can_do_action?(action)
  action == :build_download_code
end