30 lines
829 B
PHP
30 lines
829 B
PHP
<?php
|
|
/*
|
|
* Copyright (c) 2010-2018 Tim Düsterhus.
|
|
*
|
|
* Use of this software is governed by the Business Source License
|
|
* included in the LICENSE file.
|
|
*
|
|
* Change Date: 2024-03-25
|
|
*
|
|
* On the date above, in accordance with the Business Source
|
|
* License, use of this software will be governed by version 3
|
|
* or later of the General Public License.
|
|
*/
|
|
|
|
namespace chat\system\event\listener;
|
|
|
|
/**
|
|
* Disallow editing of temprooms in ACP.
|
|
*/
|
|
class RoomEditFormTemproomListener implements \wcf\system\event\listener\IParameterizedEventListener {
|
|
/**
|
|
* @see \wcf\system\event\listener\IParameterizedEventListener::execute()
|
|
*/
|
|
public function execute($eventObj, $className, $eventName, array &$parameters) {
|
|
if ($eventObj->room->isTemporary) {
|
|
throw new \wcf\system\exception\PermissionDeniedException();
|
|
}
|
|
}
|
|
}
|