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

This commit is contained in:
2026-06-26 01:31:48 +02:00
parent 40b3ef45d0
commit 8c1ae513ea
14 changed files with 367 additions and 184 deletions

View File

@@ -29,6 +29,9 @@ final class AppRegistry
if (is_array($override) && array_key_exists('required_groups', $override)) {
$app['required_groups'] = array_values(array_map('strval', (array) ($override['required_groups'] ?? [])));
}
if (is_array($override) && array_key_exists('available_without_login', $override)) {
$app['available_without_login'] = (bool) ($override['available_without_login'] ?? false);
}
return $app;
}, $mergedApps);

View File

@@ -61,4 +61,15 @@ final class AppVisibility
return isset($lookup[$appId]) || isset($mandatoryLookup[$appId]);
}));
}
/**
* @param array<int, array<string, mixed>> $apps
* @return array<int, array<string, mixed>>
*/
public static function filterForPublicDesktop(array $apps): array
{
return array_values(array_filter($apps, static function (array $app): bool {
return !empty($app['available_without_login']);
}));
}
}