5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2024-12-22 13:34:16 +03:00

api: annotate file-restore endpoint as download-enabled

to satisfy the new checks in the API handler that only allow downloading via
marked endpoints.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2024-09-19 15:19:50 +02:00 committed by Thomas Lamprecht
parent f2b4f7f955
commit f9bdac0e8f

View File

@ -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',