[pve-devel] [PATCH v2 manager 3/3] api: vzdump: extract config: add content type check

Fabian Ebner f.ebner at proxmox.com
Wed Mar 30 12:24:35 CEST 2022


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

No changes from v1.

 PVE/API2/VZDump.pm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/VZDump.pm b/PVE/API2/VZDump.pm
index a6c4d111..13b6cd46 100644
--- a/PVE/API2/VZDump.pm
+++ b/PVE/API2/VZDump.pm
@@ -267,7 +267,14 @@ __PACKAGE__->register_method ({
 	my $authuser = $rpcenv->get_user();
 
 	my $storage_cfg = PVE::Storage::config();
-	PVE::Storage::check_volume_access($rpcenv, $authuser, $storage_cfg, undef, $volume);
+	PVE::Storage::check_volume_access(
+	    $rpcenv,
+	    $authuser,
+	    $storage_cfg,
+	    undef,
+	    $volume,
+	    'backup',
+	);
 
 	if (PVE::Storage::parse_volume_id($volume, 1)) {
 	    my (undef, undef, $ownervm) = PVE::Storage::parse_volname($storage_cfg, $volume);
-- 
2.30.2






More information about the pve-devel mailing list