Assign the existing site to one landlord so stommer.info can run tenancy.

Seebad 0.3 stays in this release. With a single landlord every host still reaches the default website.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-23 12:00:11 +02:00
1 parent d9e52c4789
commit 8ebc1a3878
93 files changed
+2506 -112

No files matched your search

@@ -3,6 +3,7 @@
namespace App\Providers\Filament;
use App\Enums\AdminMode;
use App\Http\Middleware\ResolveTheme;
use App\Models\User;
use Filament\Actions\Action;
use Filament\Auth\MultiFactor\App\AppAuthentication;
@@ -49,6 +50,11 @@ public function panel(Panel $panel): Panel
isRequired: true,
)
->userMenuItems([
'tenant-switch' => Action::make('switchTenant')
->label('Anderer Mandant')
->icon(Heroicon::OutlinedArrowsRightLeft)
->visible(fn (): bool => self::currentUser()?->showsTenantSwitch() ?? false)
->url(fn (): ?string => self::currentUser()?->otherTenantAdminUrl()),
'admin-mode' => Action::make('switchAdminMode')
->label(fn (): string => (self::currentUser()?->adminMode() ?? AdminMode::Expert)->other()->switchLabel())
->icon(fn (): Heroicon => self::currentUser()?->adminMode() === AdminMode::Simple ? Heroicon::OutlinedAdjustmentsHorizontal : Heroicon::OutlinedSparkles)
@@ -79,6 +85,7 @@ public function panel(Panel $panel): Panel
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
ResolveTheme::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
PreventRequestForgery::class,