instances added god may help

This commit is contained in:
2026-02-23 12:58:19 +01:00
parent 25370a1a55
commit 99db252f60
290 changed files with 9858 additions and 4914 deletions

View File

@@ -1,7 +1,7 @@
<?php
use MintyPHP\Session;
use MintyPHP\Service\Tenant\TenantAvatarService;
use MintyPHP\Service\Tenant\TenantServicesFactory;
$canViewTenants = can('tenants.view');
$canViewDepartments = can('departments.view');
@@ -217,7 +217,8 @@ if (count($availableTenants) > 1 && !empty($currentTenant['uuid'])) {
// Tenant logo display (without switcher - switcher is now in topbar)
$tenantUuid = $currentTenant['uuid'] ?? '';
$tenantName = $currentTenant['description'] ?? '';
$hasTenantAvatar = $tenantUuid && TenantAvatarService::hasAvatar($tenantUuid);
$tenantAvatarService = (new TenantServicesFactory())->createTenantAvatarService();
$hasTenantAvatar = $tenantUuid !== '' && $tenantAvatarService->hasAvatar($tenantUuid);
$addressBookUrl = lurl('address-book');
$activeAddressSearch = trim((string) ($_GET['search'] ?? ''));
$normalizeStringList = static function ($value): array {