show debug menu only if debug mode is on

This commit is contained in:
Uwe Steinmann 2020-10-21 21:49:48 +02:00
parent 71d9e14d69
commit 1617518282
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
--------------------------------------------------------------------------------
Changes in version 6.0.14
--------------------------------------------------------------------------------
- show debug menu only if debug mode is on
- merge changes up to 5.1.21
- document links can be added by regular users again

View File

@ -916,7 +916,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
$menuitems['misc']['children']['version_info'] = array('link'=>"../out/out.Info.php", 'label'=>'version_info');
}
if($accessobject->check_view_access(array('Hooks'))) {
if ($settings->_enableDebugMode) {
$menuitems['debug'] = array('link'=>"#", 'label'=>'debug');
if ($accessobject->check_view_access('Hooks'))
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>'list_hooks');