Skip to main content

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

ParameterTypeDescription
accessPolicyAccessPolicyThe access policy.
resourceResourceThe resource.
readonlyModebooleanTrue if the resource is being read.

Returns:

boolean

True if the resource matches the access policy.