From 7d3a0ec8301b4b0674c861bd815dd96f4d73d160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 26 Dec 2011 14:14:03 +0100 Subject: [PATCH] Check whether one can enter the room --- file/lib/page/ChatPage.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index 22bd258..b123c09 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -144,6 +144,7 @@ public function readRoom() { $this->room = $this->rooms->search($this->roomID); if (!$this->room) throw new \wcf\system\exception\IllegalLinkException(); + if (!$this->room->canEnter()) throw new \wcf\system\exception\PermissionDeniedException(); } /**