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(); } /**