mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
fix: error when only resources are configured for multi-tenancy and the authenticated user has no tenant (#17956)
* fix: error when only resources are configured for multi-tenancy and the authenticated user has no tenant * Update packages/panels/src/Panel/Concerns/HasRoutes.php Signed-off-by: Dan Harrin <git@danharrin.com> --------- Signed-off-by: Dan Harrin <git@danharrin.com> Co-authored-by: Dan Harrin <git@danharrin.com>
This commit is contained in:
@@ -179,7 +179,7 @@ trait HasRoutes
|
||||
return $this->getRedirectUrl($tenant);
|
||||
}
|
||||
|
||||
if (Route::has($homeRouteName = $this->generateRouteName('home'))) {
|
||||
if (((! $hasTenancy) || $tenant) && Route::has($homeRouteName = $this->generateRouteName('home'))) {
|
||||
return route($homeRouteName, $tenant ? ['tenant' => $tenant] : []);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user