dadssad
This commit is contained in:
@@ -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' => [
|
||||
|
||||
Reference in New Issue
Block a user