1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-06-21 00:14:04 +00:00

add comment documenting the fallthrough explicitly

This commit is contained in:
Samuel Stancl 2026-05-11 16:37:51 +02:00
parent 360b0ca7cb
commit f01ec2f9a5
No known key found for this signature in database
GPG key ID: BA146259A1E16C57

View file

@ -35,6 +35,8 @@ class PreventAccessFromUnwantedDomains
return $next($request);
}
// If the route is universal, neither of these checks will pass and the logic will
// fall through to the $next($request) call at the end.
if ($this->accessingTenantRouteFromCentralDomain($request, $route) || $this->accessingCentralRouteFromTenantDomain($request, $route)) {
$abortRequest = static::$abortRequest ?? function () {
abort(404);