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:
parent
6190adaab6
commit
0cdcffc65a
@ -53,6 +53,9 @@ public function readParameters() {
|
|||||||
if (!$this->roomObj->roomID) {
|
if (!$this->roomObj->roomID) {
|
||||||
throw new \wcf\system\exception\IllegalLinkException();
|
throw new \wcf\system\exception\IllegalLinkException();
|
||||||
}
|
}
|
||||||
|
if (!$this->roomObj->permanent) {
|
||||||
|
throw new \wcf\system\exception\PermissionDeniedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,6 +39,7 @@ public function readData() {
|
|||||||
|
|
||||||
$this->objects = new \chat\data\room\RoomList();
|
$this->objects = new \chat\data\room\RoomList();
|
||||||
$this->objects->sqlOrderBy = 'showOrder ASC';
|
$this->objects->sqlOrderBy = 'showOrder ASC';
|
||||||
|
$this->objects->getConditionBuilder()->add('permanent = ?', array(1));
|
||||||
$this->objects->readObjects();
|
$this->objects->readObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user