Represents access permission functionality for checking permissions.

interface AccessPermission {
    CheckPermission(customer: Customer, products: number | number[] | Product[], includeReason: boolean, loadContext: MSAccessPermissionLoadContext): MsAccessPermissionCheckResult[];
}

Methods

  • Checks if a customer has permission to access specific products.

    Parameters

    • customer: Customer

      The customer object to check permissions for.

    • products: number | number[] | Product[]

      The array of products to check permissions against.

    • includeReason: boolean

      Indicates whether to include the reason for the permission check.

    • loadContext: MSAccessPermissionLoadContext

      The context for loading access permissions.

    Returns MsAccessPermissionCheckResult[]

    An array of permission check results.