]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/CLI/pvesm.pm
pvesm: extract config: add content type check
[pve-storage.git] / PVE / CLI / pvesm.pm
index 1daed71a1978c528e8c642e81a5608e53947b157..003b019e9af769561234e04dde5479d00ba95271 100755 (executable)
@@ -170,7 +170,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);