Skip to main content

PermissionCheckConfig

Configuration object for permission checking.

Properties​

crudAction?​

optional crudAction: CrudAction

The CRUD action to check.


permissionName?​

optional permissionName: string

The name of the specific permission to check.


propertyName?​

optional propertyName: string

The name of the property within the resource, if permission is property-specific.


resource?​

optional resource: WithId

The resource object.


resourceMetaId?​

optional resourceMetaId: string

The unique identifier of resource meta.


resourceName?​

optional resourceName: 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.