From a0f729cd8d56c41e7cc18f21d9e2f5fa57d80add Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 2 Apr 2019 12:04:14 +0300 Subject: [PATCH] fix ws --- application/Espo/Core/WebSocket/Pusher.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)