Report 'not authorized' for version in health endpoint if user lacks permission

This commit is contained in:
Jan Böhmer 2026-05-03 22:21:45 +02:00
parent 837a7d977b
commit 3b9f8229d4

View file

@ -596,6 +596,8 @@ class UpdateManagerController extends AbstractController
if ($this->isGranted('@system.show_updates')) {
$response['version'] = $this->versionManager->getVersion()->toString();
} else {
$response['version'] = "not authorized";
}
return $this->json($response);