Skip to main content
Version: Next

createConditionAuthorizer()

Home > @backstage/plugin-permission-node > createConditionAuthorizer

Takes some permission conditions and returns a definitive authorization result on the resource to which they apply.

Signature:

createConditionAuthorizer: <TResource, TQuery>(rules: PermissionRule<TResource, TQuery, string>[]) => (decision: PolicyDecision, resource: TResource | undefined) => boolean

Parameters

Parameter

Type

Description

rules

PermissionRule<TResource, TQuery, string>[]

**Returns:**

(decision: PolicyDecision, resource: TResource | undefined) => boolean