From 013e1a861e6709a91be89e9d70e2c2378acc06cd Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Thu, 24 Apr 2014 12:31:20 +0200 Subject: [PATCH] Fixed missing constant --- core/lib/Thelia/Controller/Admin/AdminLogsController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/lib/Thelia/Controller/Admin/AdminLogsController.php b/core/lib/Thelia/Controller/Admin/AdminLogsController.php index 18573bea0..afd2cf910 100644 --- a/core/lib/Thelia/Controller/Admin/AdminLogsController.php +++ b/core/lib/Thelia/Controller/Admin/AdminLogsController.php @@ -13,15 +13,14 @@ namespace Thelia\Controller\Admin; use Thelia\Core\Security\AccessManager; +use Thelia\Core\Security\Resource\AdminResources; use Thelia\Model\AdminLogQuery; class AdminLogsController extends BaseAdminController { - const RESOURCE_CODE = "admin.admin-logs"; - public function defaultAction() { - if (null !== $response = $this->checkAuth(self::RESOURCE_CODE, array(), AccessManager::VIEW)) return $response; + if (null !== $response = $this->checkAuth(AdminResources::ADMIN_LOG, array(), AccessManager::VIEW)) return $response; // Render the edition template. return $this->render('admin-logs');