PermissionCheckConfig
Configuration object for permission checking.
Properties
crudAction?
optionalcrudAction:CrudAction
The CRUD action to check.
permissionName?
optionalpermissionName:string
The name of the specific permission to check.
propertyName?
optionalpropertyName:string
The name of the property within the resource, if permission is property-specific.
resource?
optionalresource:WithId
The resource object.
resourceMetaId?
optionalresourceMetaId:string
The unique identifier of resource meta.
resourceName?
optionalresourceName:string
The name of the resource being accessed.
throwIfNoPermission
throwIfNoPermission:
boolean
Whether to throw an exception when permission is denied.
userId
userId:
string
The unique identifier of the user for whom the permission check is performed.