Class: Types::ContainerRepositoryTagType

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

Instance Method Summary collapse

Methods inherited from BaseObject

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

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#can_deleteObject



21
22
23
# File 'app/graphql/types/container_repository_tag_type.rb', line 21

def can_delete
  Ability.allowed?(current_user, :destroy_container_image, object)
end