1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix RestoreCommand

This commit is contained in:
Tim Düsterhus 2012-10-20 16:57:34 +02:00
parent 427242616d
commit 4606cca27b
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,9 @@ public function __construct(\wcf\system\chat\command\CommandHandler $commandHand
* @see \wcf\system\chat\command\IRestrictedChatCommand::checkPermission() * @see \wcf\system\chat\command\IRestrictedChatCommand::checkPermission()
*/ */
public function checkPermission() { public function checkPermission() {
WCF::getSession()->checkPermission('mod.chat.canRestore'); parent::checkPermissions();
WCF::getSession()->checkPermissions(array('mod.chat.canRestore'));
} }
/** /**

View File

@ -55,7 +55,7 @@ public function __construct(\wcf\system\chat\command\CommandHandler $commandHand
} }
/** /**
* @see \wcf\system\chat\command\AbstractRestrictedCommand::checkPermission() * @see \wcf\system\chat\command\IRestrictedCommand::checkPermission()
*/ */
public function checkPermission() { public function checkPermission() {
parent::checkPermission(); parent::checkPermission();