diff --git a/application/Espo/Core/WebSocket/Pusher.php b/application/Espo/Core/WebSocket/Pusher.php index fbdb8c82ca..7dbdf48fd8 100644 --- a/application/Espo/Core/WebSocket/Pusher.php +++ b/application/Espo/Core/WebSocket/Pusher.php @@ -165,8 +165,7 @@ class Pusher implements WampServerInterface protected function isTopicAllowed($topicId) { - list($category) = explode('.', $topicId); - return in_array($category, $this->categoryList); + return in_array($topicId, $this->categoryList); } protected function getConnectionIdListByUserId($userId)