mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:54:03 +00:00
Simplify return
This commit is contained in:
parent
92d5ffe039
commit
ba5583523f
1 changed files with 2 additions and 8 deletions
|
|
@ -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;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue