From 4606cca27b467ad8cc6f5a14625833251f65de91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 20 Oct 2012 16:57:34 +0200 Subject: [PATCH] Fix RestoreCommand --- .../lib/system/chat/command/commands/RestoreCommand.class.php | 4 +++- .../system/chat/command/commands/TemproomCommand.class.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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();