From f9bdac0e8f6c5ef2f39cfb5566a4a7a3fd761f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 19 Sep 2024 15:19:50 +0200 Subject: [PATCH] api: annotate file-restore endpoint as download-enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to satisfy the new checks in the API handler that only allow downloading via marked endpoints. Signed-off-by: Fabian Grünbichler --- src/PVE/API2/Storage/FileRestore.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/API2/Storage/FileRestore.pm b/src/PVE/API2/Storage/FileRestore.pm index 6c9cda6..4b6af63 100644 --- a/src/PVE/API2/Storage/FileRestore.pm +++ b/src/PVE/API2/Storage/FileRestore.pm @@ -146,6 +146,7 @@ __PACKAGE__->register_method ({ path => 'download', method => 'GET', proxyto => 'node', + download => 1, permissions => { description => "You need read access for the volume.", user => 'all',