JC-911 Fix SQL requests: getAllowedSubscribersForBranch and getAllowedSubscribersForTopic. We should check that subscriber are contained in some group with VIEW_TOPIC permission
JC-911 Add tests for checking subscriber permissions. We should check that subscriber are contained in some group with VIEW_TOPIC permission