1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Disallow temporary rooms in MessageLogDownloadPage

This commit is contained in:
Tim Düsterhus 2013-09-08 20:53:59 +02:00
parent 0ef6dbb36b
commit f656a212ca

View File

@ -111,7 +111,8 @@ public function readParameters() {
}
$this->room = \chat\data\room\RoomCache::getInstance()->getRoom($this->roomID);
if ($this->room === null) throw new \wcf\system\exception\IllegalLinkException();
if (!$this->room) throw new \wcf\system\exception\IllegalLinkException();
if (!$this->room->permanent) throw new \wcf\system\exception\PermissionDeniedException();
if (isset($_REQUEST['date'])) $date = $_REQUEST['date'].' 00:00:00';
else $date = 'today 00:00:00';