mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-02-21 06:10:39 +00:00
Forbid editing of temprooms in ACP
This commit is contained in:
parent
6190adaab6
commit
0cdcffc65a
@ -53,6 +53,9 @@ class RoomEditForm extends RoomAddForm {
|
||||
if (!$this->roomObj->roomID) {
|
||||
throw new \wcf\system\exception\IllegalLinkException();
|
||||
}
|
||||
if (!$this->roomObj->permanent) {
|
||||
throw new \wcf\system\exception\PermissionDeniedException();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -39,6 +39,7 @@ class RoomListPage extends \wcf\page\AbstractPage {
|
||||
|
||||
$this->objects = new \chat\data\room\RoomList();
|
||||
$this->objects->sqlOrderBy = 'showOrder ASC';
|
||||
$this->objects->getConditionBuilder()->add('permanent = ?', array(1));
|
||||
$this->objects->readObjects();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user