]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/CLI/pvesm.pm
PVE::Storage: new helper check_volume_access()
[pve-storage.git] / PVE / CLI / pvesm.pm
index 376781059e32fb57ed6c85b74c09a67a23b0b7ce..3b9943654cbeec90eaf3005b4414d8206669dbb9 100755 (executable)
@@ -86,7 +86,7 @@ __PACKAGE__->register_method ({
        my $authuser = $rpcenv->get_user();
 
        my $storage_cfg = PVE::Storage::config();
-       $rpcenv->check_volume_access($authuser, $storage_cfg, undef, $volume);
+       PVE::Storage::check_volume_access($rpcenv, $authuser, $storage_cfg, undef, $volume);
 
        my $config_raw = PVE::Storage::extract_vzdump_config($storage_cfg, $volume);