injected service use to handle the chat related operations
Options
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator checks if the user has any message permission by applying the following steps in sequence:
Authenticate the user (authenticate)
Get message by id (chatService.getOneMessage)
Get topic by topicId from message (chatService.getOneTopic)
Get subscriptions by topicId, userId and permissions (chatService.getSubscriptions)
Return 200 if the user has any message permission
403 NBError Forbidden
404 NBError Not Found
Generated using TypeDoc
Does user have any message permission validator