Function hasAccess

  • Checks if the user has the permission to perform the action

    Parameters

    • required: Permission | Permission[]
    • anyOfRequired: boolean = false

      if true, the user must have only one of the required permissions to have access, else it needs all of them

    Returns ((userPermissions: Permission[]) => boolean)

Generated using TypeDoc