core.matchesaccesspolicy
Home > @medplum/core > matchesAccessPolicy
matchesAccessPolicy() function
Warning: This API is now obsolete.
Use satisfiedAccessPolicy() instead.
Returns true if the resource satisfies the current access policy.
Signature:
export declare function matchesAccessPolicy(accessPolicy: AccessPolicy, resource: Resource, readonlyMode: boolean): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
accessPolicy | AccessPolicy | The access policy. |
resource | Resource | The resource. |
readonlyMode | boolean | True if the resource is being read. |
Returns:
boolean
True if the resource matches the access policy.