Class: Types::PermissionTypes::Project
- Inherits:
-
BasePermissionType
- Object
- GraphQL::Schema::Object
- BaseObject
- BasePermissionType
- Types::PermissionTypes::Project
- 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, define_field_resolver_method, permission_field
Methods included from Gitlab::Allowable
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#admin_all_resources ⇒ Object
41 42 43 44 45 |
# File 'app/graphql/types/permission_types/project.rb', line 41 def admin_all_resources return false unless current_user current_user.can_admin_all_resources? end |
#can_leave ⇒ Object
35 36 37 38 39 |
# File 'app/graphql/types/permission_types/project.rb', line 35 def can_leave return false unless current_user current_user.can_leave_project?(object) end |