make tenant switching menu not clickable if someone only has one tenant?

How can I make the tenant switching menu not be clickable or appear as a drop down when someone only has one tenant?
1 Reply
jaocero
jaocero5mo ago
I think you can disable the viewing of registration page and remove the register tenant in the dropdown like this:
public static function canView(): bool
{
return false;
}

/**
* @return array<Action | ActionGroup>
*/
protected function getFormActions(): array
{
return [];
}
public static function canView(): bool
{
return false;
}

/**
* @return array<Action | ActionGroup>
*/
protected function getFormActions(): array
{
return [];
}
add that in your RegisterTeam of tenancy page