mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
ef318e3899
commit
bde71c1b9c
@ -6,7 +6,8 @@ class CMSSettingsController extends LeftAndMain {
|
|||||||
static $menu_priority = -1;
|
static $menu_priority = -1;
|
||||||
static $menu_title = 'Settings';
|
static $menu_title = 'Settings';
|
||||||
static $tree_class = 'SiteConfig';
|
static $tree_class = 'SiteConfig';
|
||||||
|
static $required_permission_codes = array('EDIT_SITECONFIG');
|
||||||
|
|
||||||
public function getResponseNegotiator() {
|
public function getResponseNegotiator() {
|
||||||
$neg = parent::getResponseNegotiator();
|
$neg = parent::getResponseNegotiator();
|
||||||
$controller = $this;
|
$controller = $this;
|
||||||
|
Loading…
Reference in New Issue
Block a user