diff --git a/PVE/CLI/pvesm.pm b/PVE/CLI/pvesm.pm index 190de91..1daed71 100755 --- a/PVE/CLI/pvesm.pm +++ b/PVE/CLI/pvesm.pm @@ -172,6 +172,11 @@ __PACKAGE__->register_method ({ my $storage_cfg = PVE::Storage::config(); PVE::Storage::check_volume_access($rpcenv, $authuser, $storage_cfg, undef, $volume); + if (PVE::Storage::parse_volume_id($volume, 1)) { + my (undef, undef, $ownervm) = PVE::Storage::parse_volname($storage_cfg, $volume); + $rpcenv->check($authuser, "/vms/$ownervm", ['VM.Backup']); + } + my $config_raw = PVE::Storage::extract_vzdump_config($storage_cfg, $volume); print "$config_raw\n";