Fixed missing constant

This commit is contained in:
Franck Allimant
2014-04-24 12:31:20 +02:00
parent 83ab70082d
commit 013e1a861e

View File

@@ -13,15 +13,14 @@
namespace Thelia\Controller\Admin; namespace Thelia\Controller\Admin;
use Thelia\Core\Security\AccessManager; use Thelia\Core\Security\AccessManager;
use Thelia\Core\Security\Resource\AdminResources;
use Thelia\Model\AdminLogQuery; use Thelia\Model\AdminLogQuery;
class AdminLogsController extends BaseAdminController class AdminLogsController extends BaseAdminController
{ {
const RESOURCE_CODE = "admin.admin-logs";
public function defaultAction() 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. // Render the edition template.
return $this->render('admin-logs'); return $this->render('admin-logs');