dadssad
All checks were successful
Deploy / deploy-staging (push) Successful in 24s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-22 01:16:50 +02:00
parent ba8794c371
commit f83a64b854
12 changed files with 489 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ final class App
? $_SESSION['desktop_auth']['user']
: [];
$authGroups = array_values(array_map('strval', (array) ($authUser['groups'] ?? [])));
$isAdmin = in_array('administrators', $authGroups, true);
$visibleApps = AppVisibility::filterByGroups($registry->all(), $authGroups);
$userSelfManagement = new UserSelfManagementService($this->projectRoot);
$resolvedSkin = $userSelfManagement->resolveActiveSkin(
@@ -97,6 +98,8 @@ final class App
'session' => [
'display_name' => $displayName,
'authenticated' => $isAuthenticated,
'is_admin' => $isAdmin,
'groups' => $authGroups,
'logout_url' => $isAuthenticated && $auth->isConfigured() ? '/auth/logout' : null,
],
'menu' => [