injected service used to handle the chat related operations
injected connector used to handle the organization communication
Option
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator checks if the logged in user has any topic permission by applying the following steps in sequence:
Authenticate the user (authenticate)
Get subscription by id (chatService.getOneSubscription)
Get topic by id (chatService.getOneTopic)
Get subscriptions by topicId and permissions (chatService.getSubscriptions)
Check if user is in any organizationId returned from these
Return 200 if the user has organization with the topic permission
403 NBError Forbidden
404 NBError Not Found
Generated using TypeDoc
Does user have organization with topic permission via subscription validator