Class: Types::Ci::PipelineManualVariableType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/ci/pipeline_manual_variable_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes – Authentication at another location

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#valueObject



22
23
24
25
26
# File 'app/graphql/types/ci/pipeline_manual_variable_type.rb', line 22

def value
  return unless Ability.allowed?(current_user, :read_pipeline_variable, object.pipeline)

  object.value
end