From 35e3821dcceb4f3b2e3795a0f319c5a0b70c4faa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 9 Feb 2012 20:56:08 +0100 Subject: [PATCH] Use $neededPermissions --- .../install/files/lib/acp/action/CacheClearAction.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.20.1