instances added god may help
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user