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:
parent
427242616d
commit
4606cca27b
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user