injected review data service
target field to get the organization id
target field to get the review id
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator is used to check if the review belongs to the organization by applying the following steps in sequence:
Get the reviewId from context
Check if the review source is organization
Get organizationId from context
Check if reviewedBy id is the same as organization ID
Return the status code
400 NBError Bad Request
403 NBError Forbidden
Generated using TypeDoc
Review belongs to organization validator