From: Tim Düsterhus Date: Thu, 9 Feb 2012 19:56:08 +0000 (+0100) Subject: Use $neededPermissions X-Git-Tag: 2.0.0_Beta_1~1358^2~12^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=35e3821dcceb4f3b2e3795a0f319c5a0b70c4faa;p=GitHub%2FWoltLab%2FWCF.git Use $neededPermissions --- diff --git a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php index b070ce5dfd..1f7bc56567 100644 --- a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php @@ -22,13 +22,15 @@ use wcf\util\HeaderUtil; * @category Community Framework */ class CacheClearAction extends AbstractAction { + /** + * @see wcf\action\AbstractAction::$neededPermissions + */ + public $neededPermissions = array('admin.system.canViewLog'); /** * @see wcf\action\IAction::execute() */ public function execute() { parent::execute(); - WCF::getSession()->checkPermissions(array('admin.system.canViewLog')); - // this will clean up the templates as well LanguageFactory::getInstance()->deleteLanguageCache();