adminOnlyFields the fields that only super user can edit
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status Ok
This validator is used to check if the user is super admin by applying the following steps in sequence:
if the user is not changing the promotion status, then skip this validation
Authenticate the user token (authenticate)
Get the fieldValue from the context
Check if the user is super admin
401 NBError Unauthorized
403 NBError Forbidden
Generated using TypeDoc
Check if user have permission to update the product Some product fields can only be updated by super admin