summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-11 12:01:16 -0400
committerjim-p <jimp@pfsense.org>2011-08-11 12:01:16 -0400
commit5457129fc90bc0275ef7d5db6608b309907a15f6 (patch)
treecfaff8fce74e784ce165cf50f9f8474ec6533681
parentcfb5b1b18a44869de26bf0d9d54230c1ab9cd280 (diff)
downloadpfsense-5457129fc90bc0275ef7d5db6608b309907a15f6.zip
pfsense-5457129fc90bc0275ef7d5db6608b309907a15f6.tar.gz
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
-rw-r--r--etc/inc/priv.defs.inc12
1 files changed, 12 insertions, 0 deletions
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.");
OpenPOWER on IntegriCloud