Class: Types::Packages::Protection::RuleType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/packages/protection/rule_type.rb

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

#minimum_access_level_for_deleteObject



48
49
50
51
52
# File 'app/graphql/types/packages/protection/rule_type.rb', line 48

def minimum_access_level_for_delete
  return unless Feature.enabled?(:packages_protected_packages_delete, object&.project)

  object.minimum_access_level_for_delete
end