Skip to content

Commit

Permalink
Fixing permission issue with CMSSettingsController, where it won't sh…
Browse files Browse the repository at this point in the history
…ow up for users with limited rights, even when they have the `EDIT_SITECONFIG` permission
  • Loading branch information
bummzack committed Sep 25, 2012
1 parent ef318e3 commit bde71c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/controllers/CMSSettingsController.php
Expand Up @@ -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;
Expand Down

0 comments on commit bde71c1

Please sign in to comment.