Skip to main content

compileAttachments

@webda/iam


Function: compileAttachments()

compileAttachments(attachments, known): object

Defined in: packages/iam/src/compiler.ts:192

Compile attachments into deduplicated Casbin g rows

Parameters​

attachments​

PolicyAttachment[]

the attachments

known​

Set<string>

the names of existing policies

Returns​

object

the rows, and the attachments ignored (unknown policy or invalid principal)

ignored​

ignored: PolicyAttachment[]

rows​

rows: AttachmentRow[]