mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
show debug menu only if debug mode is on
This commit is contained in:
parent
71d9e14d69
commit
1617518282
|
@ -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
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue
Block a user