1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Check whether one can enter the room

This commit is contained in:
Tim Düsterhus 2011-12-26 14:14:03 +01:00
parent 7852f07242
commit 7d3a0ec830

View File

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