mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Disallow temporary rooms in MessageLogDownloadPage
This commit is contained in:
parent
0ef6dbb36b
commit
f656a212ca
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user