• Is user type allowed create organization validator

    Parameters

    • authSecrets: AuthSecrets

      authentication secrets

    • authenticate: AuthenticationFunction
    • userAPI: UserDefaultAdapterAPI

      injected api use to handle the user related operations

    • 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 will check if the user type is allowed to create organization by applying the following steps in sequence:

    1. Authenticate user

    2. Check if user type is allowed to create organization

    Throws

    401 NBError Unauthorized

    • authentication failed

    Throws

    403 NBError Forbidden

    • You have no permission to create an organization

Generated using TypeDoc