listen ansichten verbessert
This commit is contained in:
@@ -565,7 +565,7 @@ class UserAccountService
|
||||
$errors[] = t('Tenant not found');
|
||||
} else {
|
||||
$userTenantIds = $this->userAssignmentService->buildAssignmentsForUser($userId)['tenants'] ?? [];
|
||||
$userTenantIds = array_map(static fn(array $t): int => (int) ($t['id'] ?? 0), $userTenantIds);
|
||||
$userTenantIds = array_map(static fn (array $t): int => (int) ($t['id'] ?? 0), $userTenantIds);
|
||||
$tenantId = (int) $tenant['id'];
|
||||
if (!in_array($tenantId, $userTenantIds, true)) {
|
||||
$errors[] = t('No access to this tenant');
|
||||
|
||||
Reference in New Issue
Block a user