authentication secrets
injected api use to handle the user related operations
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator will check if the user allows to update the field by applying the following steps in sequence:
Check if the admin only fields exist in the body, if not, return 200, if yes, continue
Authenticate user
Check if user is an admin (userAPI.isAdminUser)
Throw 403 if user is not an admin
Return 200 if user is an admin
401 NBError Unauthorized
403 NBError Forbidden
Generated using TypeDoc
Validate user allows field validator