tenant admin startseite schicker gestaltet und super-admin und tenant admin (filament) aufgesplittet.

Es gibt nun task collections und vordefinierte tasks für alle. Onboarding verfeinert und webseite-carousel gefixt (logging später entfernen!)
This commit is contained in:
Codex Agent
2025-10-14 15:17:52 +02:00
parent 64a5411fb9
commit 1a4bdb1fe1
92 changed files with 6027 additions and 515 deletions

View File

@@ -116,7 +116,11 @@ class User extends Authenticatable implements MustVerifyEmail, HasName, Filament
return false;
}
return in_array($this->role, ['tenant_admin', 'super_admin'], true);
return match ($panel->getId()) {
'superadmin' => $this->role === 'super_admin',
'admin' => $this->role === 'tenant_admin',
default => false,
};
}
public function canAccessTenant(Model $tenant): bool