Update AuthenticateIPAccess.php

Fix a 500 error when processing a request with an IP filter
This commit is contained in:
Matt Malec 2020-11-08 21:57:22 -05:00 committed by GitHub
parent 085fa8dcb5
commit df64026449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ class AuthenticateIPAccess
}
$find = new IP($request->ip());
foreach (json_decode($model->allowed_ips) as $ip) {
foreach ($model->allowed_ips as $ip) {
if (Range::parse($ip)->contains($find)) {
return $next($request);
}