From 095fdaedbe390fe11621777fde5f5086debaf474 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Fri, 3 Apr 2020 09:58:10 +0800 Subject: [PATCH] Uncomment permission check --- controllers/Index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/Index.php b/controllers/Index.php index 3e1d7916..50f384ea 100644 --- a/controllers/Index.php +++ b/controllers/Index.php @@ -54,10 +54,10 @@ public function __construct() throw new ApplicationException(Lang::get('cms::lang.theme.edit.not_found')); } - // if ($this->user->hasAccess('rainlab.pages.manage_pages')) { + if ($this->user->hasAccess('rainlab.pages.manage_pages')) { new PageList($this, 'pageList'); $this->vars['activeWidgets'][] = 'pageList'; - // } + } if ($this->user->hasAccess('rainlab.pages.manage_menus')) { new MenuList($this, 'menuList');