add list of notifications to debug menu

This commit is contained in:
Uwe Steinmann 2022-05-21 11:00:16 +02:00
parent 987cc5d164
commit 1f6a3c7f77
2 changed files with 6 additions and 2 deletions

View File

@ -1019,10 +1019,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
}
if ($settings->_enableDebugMode) {
if($accessobject->check_view_access(array('Hooks'))) {
if($accessobject->check_view_access(array('Hooks', 'NotificationServices'))) {
$menuitems['debug'] = array('link'=>"#", 'label'=>getMLText('debug'));
if ($accessobject->check_view_access('Hooks'))
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>getMLText('list_hooks'));
if ($accessobject->check_view_access('NotificationServices'))
$menuitems['debug']['children']['notification_services'] = array('link'=>"../out/out.NotificationServices.php", 'label'=>getMLText('list_notification_services'));
}
}

View File

@ -927,10 +927,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
}
if ($settings->_enableDebugMode) {
if($accessobject->check_view_access(array('Hooks'))) {
if($accessobject->check_view_access(array('Hooks', 'NotificationServices'))) {
$menuitems['debug'] = array('link'=>"#", 'label'=>getMLText('debug'));
if ($accessobject->check_view_access('Hooks'))
$menuitems['debug']['children']['hooks'] = array('link'=>"../out/out.Hooks.php", 'label'=>getMLText('list_hooks'));
if ($accessobject->check_view_access('NotificationServices'))
$menuitems['debug']['children']['notification_services'] = array('link'=>"../out/out.NotificationServices.php", 'label'=>getMLText('list_notification_services'));
}
}