Security: Hide config menu items if the user lacks the required permission
refs #8720
This commit is contained in:
parent
da16bfcef3
commit
093dfd627e
|
@ -232,12 +232,14 @@ class Menu implements RecursiveIterator
|
||||||
'priority' => 200
|
'priority' => 200
|
||||||
));
|
));
|
||||||
$section->add(t('Configuration'), array(
|
$section->add(t('Configuration'), array(
|
||||||
'url' => 'config',
|
'url' => 'config',
|
||||||
'priority' => 300
|
'permission' => 'config/application/*',
|
||||||
|
'priority' => 300
|
||||||
));
|
));
|
||||||
$section->add(t('Modules'), array(
|
$section->add(t('Modules'), array(
|
||||||
'url' => 'config/modules',
|
'url' => 'config/modules',
|
||||||
'priority' => 400
|
'permission' => 'config/modules',
|
||||||
|
'priority' => 400
|
||||||
));
|
));
|
||||||
|
|
||||||
if (Logger::writesToFile()) {
|
if (Logger::writesToFile()) {
|
||||||
|
|
Loading…
Reference in New Issue