1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 05:34:04 +00:00

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.
This commit is contained in:
lukinovec 2025-12-29 16:55:19 +01:00
parent e3701f1cc1
commit 6133c7cbe6

View file

@ -31,7 +31,7 @@ class PreventAccessFromUnwantedDomains
{
$route = tenancy()->getRoute($request);
if ($this->shouldBeSkipped($route) || tenancy()->routeIsUniversal($route)) {
if ($this->shouldBeSkipped($route)) {
return $next($request);
}