mirror of
https://github.com/archtechx/tenancy.git
synced 2026-06-21 18:44:06 +00:00
add comment documenting the fallthrough explicitly
This commit is contained in:
parent
360b0ca7cb
commit
f01ec2f9a5
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue