From 1f6a3c7f772b3ddd9a85f318cc68296de1a505b2 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 21 May 2022 11:00:16 +0200 Subject: [PATCH] add list of notifications to debug menu --- views/bootstrap/class.Bootstrap.php | 4 +++- views/bootstrap4/class.Bootstrap4.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 0240f663e..af06516aa 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -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')); } } diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 64ed0d3db..69077772e 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -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')); } }