Fixing permission issue with CMSSettingsController, where it won't show up for users with limited rights, even when they have the `EDIT_SITECONFIG` permission

This commit is contained in:
Roman 2012-09-25 22:13:31 +02:00
parent ef318e3899
commit bde71c1b9c
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ class CMSSettingsController extends LeftAndMain {
static $menu_priority = -1;
static $menu_title = 'Settings';
static $tree_class = 'SiteConfig';
static $required_permission_codes = array('EDIT_SITECONFIG');
public function getResponseNegotiator() {
$neg = parent::getResponseNegotiator();
$controller = $this;