summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-02-07 11:55:48 -0500
committerjim-p <jimp@pfsense.org>2014-02-07 11:55:48 -0500
commit949735aab99e95b981954a1433daa1d4922d4e1c (patch)
tree0c237dc96d4cc704aee4f155fac6d5911182c894
parentb7ef3d173f013dd45ec0a60f1526bbe1358502e0 (diff)
downloadpfsense-949735aab99e95b981954a1433daa1d4922d4e1c.zip
pfsense-949735aab99e95b981954a1433daa1d4922d4e1c.tar.gz
Add specific permission for easyrule.
-rw-r--r--etc/inc/priv.defs.inc6
-rw-r--r--usr/local/www/easyrule.php9
2 files changed, 14 insertions, 1 deletions
diff --git a/etc/inc/priv.defs.inc b/etc/inc/priv.defs.inc
index e06c678..19340a9 100644
--- a/etc/inc/priv.defs.inc
+++ b/etc/inc/priv.defs.inc
@@ -1360,6 +1360,12 @@ $priv_list['page-xmlrpclibrary']['descr'] = gettext("Allow access to the 'XMLRPC
$priv_list['page-xmlrpclibrary']['match'] = array();
$priv_list['page-xmlrpclibrary']['match'][] = "xmlrpc.php*";
+$priv_list['page-firewall-easyrule'] = array();
+$priv_list['page-firewall-easyrule']['name'] = gettext("WebCfg - Firewall: Easy Rule add/status page");
+$priv_list['page-firewall-easyrule']['descr'] = gettext("Allow access to the 'Firewall: Easy Rule' add/status page.");
+$priv_list['page-firewall-easyrule']['match'] = array();
+$priv_list['page-firewall-easyrule']['match'][] = "easyrule.php*";
+
$priv_rmvd = array();
?>
diff --git a/usr/local/www/easyrule.php b/usr/local/www/easyrule.php
index 87c6a64..961173d 100644
--- a/usr/local/www/easyrule.php
+++ b/usr/local/www/easyrule.php
@@ -31,7 +31,14 @@
pfSense_MODULE: filter
*/
-$pgtitle = gettext("Status : EasyRule");
+##|+PRIV
+##|*IDENT=page-firewall-easyrule
+##|*NAME=Firewall: Easy Rule add/status page
+##|*DESCR=Allow access to the 'Firewall: Easy Rule' add/status page.
+##|*MATCH=easyrule.php*
+##|-PRIV
+
+$pgtitle = gettext("Firewall: EasyRule");
require_once("guiconfig.inc");
require_once("easyrule.inc");
require_once("filter.inc");
OpenPOWER on IntegriCloud