]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/VZDump.pm
api: vzdump: extract config: add content type check
[pve-manager.git] / PVE / API2 / VZDump.pm
index a6c4d111f5c61513590343f4208bfdadf9d19351..13b6cd4666f1852815aa802568190370883d7e9d 100644 (file)
@@ -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);