Determines delete and create permissions for those resources that need it by making sure the parent container has the required permissions.

Create requires append permissions on the parent container. Delete requires write permissions on both the parent container and the resource itself.

Hierarchy

Constructors

Properties

identifierStrategy: IdentifierStrategy
logger: Logger = ...

Methods

  • Determines the create and delete permissions for the given resource permissions based on those of its parent container.

    Parameters

    • resourcePermission: Partial<Record<AccessMode, boolean>>
    • containerPermission: Partial<Record<AccessMode, boolean>>

    Returns Partial<Record<AccessMode, boolean>>