Permalink
Browse files

Fixing permission issue with CMSSettingsController, where it won't sh…

…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 bde71c1b9c9eadbd959b6fa7e759526825b257a7
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;

0 comments on commit bde71c1

Please sign in to comment.