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

Forbid editing of temprooms in ACP

This commit is contained in:
Tim Düsterhus 2013-05-31 02:07:03 +02:00
parent 6190adaab6
commit 0cdcffc65a
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,9 @@ public function readParameters() {
if (!$this->roomObj->roomID) {
throw new \wcf\system\exception\IllegalLinkException();
}
if (!$this->roomObj->permanent) {
throw new \wcf\system\exception\PermissionDeniedException();
}
}
/**

View File

@ -39,6 +39,7 @@ public function readData() {
$this->objects = new \chat\data\room\RoomList();
$this->objects->sqlOrderBy = 'showOrder ASC';
$this->objects->getConditionBuilder()->add('permanent = ?', array(1));
$this->objects->readObjects();
}