• Is all product belong to org validator

    Parameters

    • productService: ProductDataService

      product service

    • orgIdTargetField: TargetField
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<number>

    200 Status Ok

    Description

    This validator is used to check if all the products belong to the organization by applying the following steps in sequence:

    1. Get the ids and orgId from the context

    2. Check if all the products belong to the organization

    Throws

    403 NBError Forbidden

    • Permission denied to some of the products

Generated using TypeDoc