public function canAccessPanel(Panel $panel): bool
{
dd(Route::currentRouteName()); //shows "filament.app.tenant"
//dd($panel->getId()); // shows "app", but client user should be "client"
if (str_ends_with($this->email, '@mydomain.com')) {
return $this->isInternal() && $this->hasVerifiedEmail();
} else {
return $this->hasVerifiedEmail();
}
public function canAccessPanel(Panel $panel): bool
{
dd(Route::currentRouteName()); //shows "filament.app.tenant"
//dd($panel->getId()); // shows "app", but client user should be "client"
if (str_ends_with($this->email, '@mydomain.com')) {
return $this->isInternal() && $this->hasVerifiedEmail();
} else {
return $this->hasVerifiedEmail();
}