Skip to content

Commit

Permalink
Load default ruleset only for admin user
Browse files Browse the repository at this point in the history
  • Loading branch information
sonertari committed Jun 15, 2021
1 parent 2ae729d commit 05e5a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/pf/pf.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static function DisplayDashboardExtras()
$View= new Pf();

// Load the main pf configuration if the ruleset is empty
if ($View->RuleSet->filename == '') {
if (in_array($_SESSION['USER'], $ADMIN) && $View->RuleSet->filename == '') {
$filepath= '/etc/pf.conf';
$ruleSet= new RuleSet();
if ($ruleSet->load($filepath, 0, TRUE)) {
Expand Down

0 comments on commit 05e5a3d

Please sign in to comment.