1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 06:04:03 +00:00
This commit is contained in:
Samuel Štancl 2019-10-14 20:15:19 +02:00
parent d6550da2c8
commit 4591c58dbf

View file

@ -48,7 +48,7 @@ class PreventAccessFromTenantDomains
}
// Loop one level deep and check if the route's middleware
// groups have a `tenancy` middleware grouú inside them
// groups have a `tenancy` middleware group inside them
$middlewareGroups = Router::getMiddlewareGroups();
foreach ($route->middleware() as $middleware) {
if (isset($middlewareGroups[$middleware]) && in_array('tenancy', $middlewareGroups[$middleware], true)) {