Skip to content

Commit

Permalink
Update WhitelistRangeMiddleware.php
Browse files Browse the repository at this point in the history
Check if the base package firewall is enabled or disabled.  If it is disabled then skip returns true.
  • Loading branch information
matthewmnewman authored Oct 4, 2024
1 parent 47cf046 commit 0a0dd54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Middleware/WhitelistRangeMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function skip($request)
{
$this->prepare($request);


if ($this->isWhitelist()) {
return true;
}
Expand All @@ -76,6 +77,10 @@ public function skip($request)
return true;
}

if (!config('firewall.enabled', true)) {
return true;
}

return false;
}
}

0 comments on commit 0a0dd54

Please sign in to comment.