Type Parameters

  • T extends string = string

Hierarchy

  • PermissionManager

Implemented by

Methods

  • Check a list of permissions

    Returns

    PermissionObject Object which contains boolean test results for each permission

    Parameters

    • checkPermissions: PermissionList<T>

      List of permissions which the entity must have

    • entityId: string

      The entity who is performing the action

    • Optional targetId: string

      The entity which is the target of the action

    Returns Promise<PermissionObject>

  • Fetch permissions against a target entity

    Returns

    Promise Promise of permissions this entity has

    Parameters

    • entityId: string

      The entity who is performing the action

    • Optional targetId: string

      The entity which is the target of the action

    Returns Promise<PermissionList<T>>

Generated using TypeDoc