diff --git a/file/lib/system/chat/command/commands/RestoreCommand.class.php b/file/lib/system/chat/command/commands/RestoreCommand.class.php index 0113269..1ef6bda 100644 --- a/file/lib/system/chat/command/commands/RestoreCommand.class.php +++ b/file/lib/system/chat/command/commands/RestoreCommand.class.php @@ -40,7 +40,9 @@ public function __construct(\wcf\system\chat\command\CommandHandler $commandHand * @see \wcf\system\chat\command\IRestrictedChatCommand::checkPermission() */ public function checkPermission() { - WCF::getSession()->checkPermission('mod.chat.canRestore'); + parent::checkPermissions(); + + WCF::getSession()->checkPermissions(array('mod.chat.canRestore')); } /** diff --git a/file/lib/system/chat/command/commands/TemproomCommand.class.php b/file/lib/system/chat/command/commands/TemproomCommand.class.php index da9be17..308d8c5 100644 --- a/file/lib/system/chat/command/commands/TemproomCommand.class.php +++ b/file/lib/system/chat/command/commands/TemproomCommand.class.php @@ -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() { parent::checkPermission();