hasEntityConditions
hasEntityConditions(
ability,subjects,action?):boolean
Defined in: packages/pipeline-casl/src/helpers/authorizer.ts:154
Checks whether an ability contains conditional rules for any of the given subjects.
Cache policies use this to detect that entity attributes can alter an
authorization decision, which requires bypassing a response cache. Pass
action to ignore rules that cannot affect that action; rules for manage
always count. A subject list containing 'all' matches every rule.
Parameters
Section titled “Parameters”ability
Section titled “ability”subjects
Section titled “subjects”readonly string[]
action?
Section titled “action?”string
Returns
Section titled “Returns”boolean