injected service use to handle the chat related operations
Options
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 checks if the user has permission to use the message template by applying the following steps in sequence:
Authenticate the user (authenticate)
Get message template by id and normalize (chatService.getMessageTemplateByIdAndNormalize)
Check if the message template exists
Check if the message template has permissions
Get user by id (userAPI.getUserById)
Check if the user has permission to use the message template
401 NBError Unauthorized
403 NBError Forbidden
404 NBError Not Found
Generated using TypeDoc
Check message template permission validator