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);
return PVE::Storage::extract_vzdump_config($storage_cfg, $volume);
}});
my $res = [];
foreach my $item (@$vollist) {
- eval { $rpcenv->check_volume_access($authuser, $cfg, undef, $item->{volid}); };
+ eval { PVE::Storage::check_volume_access($rpcenv, $authuser, $cfg, undef, $item->{volid}); };
next if $@;
push @$res, $item;
}
my $cfg = PVE::Storage::config();
- $rpcenv->check_volume_access($authuser, $cfg, undef, $template);
+ PVE::Storage::check_volume_access($rpcenv, $authuser, $cfg, undef, $template);
my $abs_path = PVE::Storage::abs_filesystem_path($cfg, $template);