☰
CompanyRoleRead
Reads a Company Role.
Returns a Company Role with the specified Id.
Parent field is a set of permissions inherited from another Company Role
Fields
roleId: Int!
code: String
name: String
description: String
admin: Boolean
permissions: [CompanyRolePermission!]
parent: CompanyRoleRead
createdAt: DateTime
companyId: Int!
updatedAt: DateTime
deletable: Boolean
Flags if an item can be deleted If set to true, this item can't be deleted
isAllowed(checkAll: Boolean,permissions: [RoleAllowsPermission!]!): RoleAllowsRead!
Resolves the sent permissions. If 'checkAll' is true, all the permissions must be allowed