diff --git a/src/Middleware/WhitelistRangeMiddleware.php b/src/Middleware/WhitelistRangeMiddleware.php index 212198b..a68159d 100644 --- a/src/Middleware/WhitelistRangeMiddleware.php +++ b/src/Middleware/WhitelistRangeMiddleware.php @@ -68,6 +68,7 @@ public function skip($request) { $this->prepare($request); + if ($this->isWhitelist()) { return true; } @@ -76,6 +77,10 @@ public function skip($request) return true; } + if (!config('firewall.enabled', true)) { + return true; + } + return false; } }