Put update manager under /system route instead of admin

This commit is contained in:
Jan Böhmer 2026-02-02 21:29:07 +01:00
parent 0e5a73b6f4
commit f327688f0a

View file

@ -41,7 +41,7 @@ use Symfony\Component\Routing\Attribute\Route;
* This provides a read-only view of update status and instructions. * This provides a read-only view of update status and instructions.
* Actual updates should be performed via the CLI command for safety. * Actual updates should be performed via the CLI command for safety.
*/ */
#[Route('/admin/update-manager')] #[Route('/system/update-manager')]
class UpdateManagerController extends AbstractController class UpdateManagerController extends AbstractController
{ {
public function __construct( public function __construct(
@ -259,7 +259,7 @@ class UpdateManagerController extends AbstractController
#[Route('/progress', name: 'admin_update_manager_progress', methods: ['GET'])] #[Route('/progress', name: 'admin_update_manager_progress', methods: ['GET'])]
public function progress(): Response public function progress(): Response
{ {
$this->denyAccessUnlessGranted('@system.show_updates'); $this->denyAccessUnlessGranted('@system.manage_updates');
$progress = $this->updateExecutor->getProgress(); $progress = $this->updateExecutor->getProgress();
$currentVersion = $this->versionManager->getVersion()->toString(); $currentVersion = $this->versionManager->getVersion()->toString();