Class: Types::PermissionTypes::Project

Inherits:
BasePermissionType show all
Defined in:
app/graphql/types/permission_types/project.rb

Constant Summary

Constants inherited from BasePermissionType

BasePermissionType::RESOLVING_KEYWORDS

Instance Method Summary collapse

Methods inherited from BasePermissionType

abilities, ability_field, permission_field

Methods included from Gitlab::Allowable

#can?

Methods inherited from BaseObject

#current_user, #id

Instance Method Details

#create_snippetObject


24
25
26
# File 'app/graphql/types/permission_types/project.rb', line 24

def create_snippet
  Ability.allowed?(context[:current_user], :create_snippet, object)
end