From bde71c1b9c9eadbd959b6fa7e759526825b257a7 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 25 Sep 2012 22:13:31 +0200 Subject: [PATCH] Fixing permission issue with CMSSettingsController, where it won't show up for users with limited rights, even when they have the `EDIT_SITECONFIG` permission --- code/controllers/CMSSettingsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/controllers/CMSSettingsController.php b/code/controllers/CMSSettingsController.php index cb8d0e23..a5000edb 100644 --- a/code/controllers/CMSSettingsController.php +++ b/code/controllers/CMSSettingsController.php @@ -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;