Kaizen
Browse modulesAccessaccess/sharedFunctions

Function: hasCoarsePermission()

function hasCoarsePermission(
   snapshot: PermissionSnapshot, 
   action: `${string}.${string}`, 
   now?: Date
): boolean;

Defined in: shared/access/kernel.ts:481

Coarse, resource-free capability check used to derive a CapabilitySnapshot: does an unconstrained grant contain the action? Grants with selectors/conditions do not qualify. Advisory only — resource-sensitive checks must still go through evaluateAccess server-side.

Parameters

ParameterType
snapshotPermissionSnapshot
action`${string}.${string}`
nowDate

Returns

boolean

On this page