Skip to content

Commit

Permalink
Merge pull request #10 from matthewmnewman/2.x
Browse files Browse the repository at this point in the history
Update WhitelistRangeMiddleware.php
  • Loading branch information
lam0819 authored Jan 8, 2025
2 parents 8b994b8 + 0a0dd54 commit c051ff5
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 c051ff5

Please sign in to comment.