From 91bab27535454a5f9e41a8b0092f20555c00a2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 26 Dec 2011 12:45:05 +0100 Subject: [PATCH] Check permissions in RefreshRoomList --- file/lib/page/ChatRefreshRoomListPage.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/file/lib/page/ChatRefreshRoomListPage.class.php b/file/lib/page/ChatRefreshRoomListPage.class.php index bf6587b..56d0267 100644 --- a/file/lib/page/ChatRefreshRoomListPage.class.php +++ b/file/lib/page/ChatRefreshRoomListPage.class.php @@ -47,6 +47,7 @@ public function show() { @header('Content-type: application/json'); $json = array(); foreach ($this->rooms as $room) { + if (!$room->canEnter()) continue; $json[] = array( 'title' => WCF::getLanguage()->get($room->title), 'link' => \wcf\system\request\LinkHandler::getInstance()->getLink('Chat', array(