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

Simplify return

This commit is contained in:
Mark 2024-12-29 09:09:34 +01:00
parent 92d5ffe039
commit ba5583523f
No known key found for this signature in database
GPG key ID: 79CFF7869BD39873

View file

@ -120,14 +120,8 @@ class CloneRoutesAsTenant
$pathIdentificationUsed = (! $routeHasNonPathIdentificationMiddleware) && $pathIdentificationUsed = (! $routeHasNonPathIdentificationMiddleware) &&
($routeHasPathIdentificationMiddleware || $pathIdentificationMiddlewareInGlobalStack); ($routeHasPathIdentificationMiddleware || $pathIdentificationMiddlewareInGlobalStack);
if ( return $pathIdentificationUsed &&
$pathIdentificationUsed && (tenancy()->getRouteMode($route) === RouteMode::UNIVERSAL || tenancy()->routeHasMiddleware($route, 'clone'));
(tenancy()->getRouteMode($route) === RouteMode::UNIVERSAL || tenancy()->routeHasMiddleware($route, 'clone'))
) {
return true;
}
return false;
}); });
} }