mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-11 12:09:36 +00:00
Put update manager under /system route instead of admin
This commit is contained in:
parent
0e5a73b6f4
commit
f327688f0a
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ use Symfony\Component\Routing\Attribute\Route;
|
|||
* This provides a read-only view of update status and instructions.
|
||||
* Actual updates should be performed via the CLI command for safety.
|
||||
*/
|
||||
#[Route('/admin/update-manager')]
|
||||
#[Route('/system/update-manager')]
|
||||
class UpdateManagerController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
|
|
@ -259,7 +259,7 @@ class UpdateManagerController extends AbstractController
|
|||
#[Route('/progress', name: 'admin_update_manager_progress', methods: ['GET'])]
|
||||
public function progress(): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('@system.show_updates');
|
||||
$this->denyAccessUnlessGranted('@system.manage_updates');
|
||||
|
||||
$progress = $this->updateExecutor->getProgress();
|
||||
$currentVersion = $this->versionManager->getVersion()->toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue