Skip to content

Commit 6133c7c

Browse files
committed
Delete redundant universal route check from prevent access MW
The PreventAcessFromUnwantedDomains MW had the routeIsUniversal check either for returning early, or it was a leftover from some older implementation.
1 parent e3701f1 commit 6133c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/PreventAccessFromUnwantedDomains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function handle(Request $request, Closure $next): mixed
3131
{
3232
$route = tenancy()->getRoute($request);
3333

34-
if ($this->shouldBeSkipped($route) || tenancy()->routeIsUniversal($route)) {
34+
if ($this->shouldBeSkipped($route)) {
3535
return $next($request);
3636
}
3737

0 commit comments

Comments
 (0)