buildAbility
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
buildAbility(
rules,principal?):AppAbility
Defined in: packages/pipeline-casl/src/helpers/ability.ts:29
Builds the ability for one caller. Every direct rule precedes every inverted
rule (stable within each group), so a deny from any source wins over an allow.
Placeholders resolve against principal; a missing attribute throws.
Parameters
Section titled “Parameters”readonly (string | Capability)[]
principal?
Section titled “principal?”Returns
Section titled “Returns”Throws
Section titled “Throws”For a malformed capability or an allow rule with an
empty fields list.