From e4ab02c77ab5262863edc1fa8d86ecda74452f5c Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 2 Apr 2019 12:25:47 +0300 Subject: [PATCH] fix ws --- application/Espo/Core/WebSocket/Pusher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/Espo/Core/WebSocket/Pusher.php b/application/Espo/Core/WebSocket/Pusher.php index 7dbdf48fd8..d6181eca7c 100644 --- a/application/Espo/Core/WebSocket/Pusher.php +++ b/application/Espo/Core/WebSocket/Pusher.php @@ -165,7 +165,9 @@ class Pusher implements WampServerInterface protected function isTopicAllowed($topicId) { - return in_array($topicId, $this->categoryList); + list($category) = explode( '.', $topicId); + + return in_array($topicId, $this->categoryList) || in_array($category, $this->categoryList); } protected function getConnectionIdListByUserId($userId)