Tenancy + canAccessPanel

Hi! I'm using Filament v3 multi-tenancy and I have 2 panels. But only user A in tenant 1 should have access to the 2 panels.

User A in tenant 2 should only have access to panel 1.

I'm trying to accomplish this via the canAccessPanel() method in the User model, but I can't seem to access Filament::getTenant() in here.

public function canAccessPanel(Panel $panel): bool
{
     // Need to access the team here?
}
`

Is there any way to accomplish this?

Kr,
Wannes
Was this page helpful?