Skip to content

Commit

Permalink
Uncomment permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thomson authored Apr 3, 2020
1 parent 0ea9394 commit 095fdae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 095fdae

Please sign in to comment.