@resistdesign/voltra
    Preparing search index...

    Function getDACRoleHasAccessToDataItem

    • Get the access to a given data item resource for a given DAC role.

      Parameters

      • prefixPath: LiteralValue[]

        Path prefix identifying the ORM scope.

      • operation: ORMOperation

        ORM operation to evaluate.

      • typeName: string

        Type name for the item.

      • dataItem: Partial<TypeInfoDataItem>

        Item to check access for.

      • typeInfo: TypeInfo

        Type info describing fields and primary key.

      • role: DACRole

        DAC role being evaluated.

      • getDACRoleById: (id: string) => Promise<DACRole>

        Lookup helper used to resolve roles by id.

      • OptionaldacRoleCache: Record<string, DACRole>

        SECURITY: Don't use this if you want realtime role resolution.

      Returns Promise<DACDataItemResourceAccessResultMap>

      Access result map for the item and its fields.