]> git.proxmox.com Git - pve-manager.git/commitdiff
api: vzdump: extract config: add content type check
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 30 Mar 2022 10:24:35 +0000 (12:24 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 1 Apr 2022 07:24:35 +0000 (09:24 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
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);