From 5457129fc90bc0275ef7d5db6608b309907a15f6 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 11 Aug 2011 12:01:16 -0400 Subject: Add Dashboard privilege which is a collection of all required pages for the dashboard. Partial fix for ticket #620 - may do something more for 2.1 --- etc/inc/priv.defs.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/etc/inc/priv.defs.inc b/etc/inc/priv.defs.inc index a272971..8f95611 100644 --- a/etc/inc/priv.defs.inc +++ b/etc/inc/priv.defs.inc @@ -12,6 +12,18 @@ $priv_list['page-all']['descr'] = gettext("Allow access to all pages"); $priv_list['page-all']['match'] = array(); $priv_list['page-all']['match'][] = "*"; +$priv_list['page-dashboard-all'] = array(); +$priv_list['page-dashboard-all']['name'] = gettext("WebCfg - Dashboard (all)"); +$priv_list['page-dashboard-all']['descr'] = gettext("Allow access to all pages required for the dashboard."); +$priv_list['page-dashboard-all']['match'] = array(); +$priv_list['page-dashboard-all']['match'][] = "index.php*"; +$priv_list['page-dashboard-all']['match'][] = "*.widget.php*"; +$priv_list['page-dashboard-all']['match'][] = "graph.php*"; +$priv_list['page-dashboard-all']['match'][] = "graph_cpu.php*"; +$priv_list['page-dashboard-all']['match'][] = "getstats.php*"; +$priv_list['page-dashboard-all']['match'][] = "ifstats.php*"; +$priv_list['page-dashboard-all']['match'][] = "diag_logs_filter_dynamic.php*"; + $priv_list['page-status-carp'] = array(); $priv_list['page-status-carp']['name'] = gettext("WebCfg - Status: CARP page"); $priv_list['page-status-carp']['descr'] = gettext("Allow access to the 'Status: CARP' page."); -- cgit v1.1