mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-14 02:38:23 +00:00
use new PVE::Storage::check_volume_access()
This commit is contained in:
parent
7246e8f92f
commit
9bb3acf155
@ -60,7 +60,7 @@ my $check_storage_access = sub {
|
||||
die "no storage ID specified (and no default storage)\n" if !$storeid;
|
||||
$rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
|
||||
} else {
|
||||
$rpcenv->check_volume_access($authuser, $storecfg, $vmid, $volid);
|
||||
PVE::Storage::check_volume_access($rpcenv, $authuser, $storecfg, $vmid, $volid);
|
||||
}
|
||||
});
|
||||
};
|
||||
@ -157,7 +157,7 @@ my $create_disks = sub {
|
||||
$res->{$ds} = PVE::QemuServer::print_drive($vmid, $disk);
|
||||
} else {
|
||||
|
||||
$rpcenv->check_volume_access($authuser, $storecfg, $vmid, $volid);
|
||||
PVE::Storage::check_volume_access($rpcenv, $authuser, $storecfg, $vmid, $volid);
|
||||
|
||||
my $volid_is_new = 1;
|
||||
|
||||
@ -474,7 +474,7 @@ __PACKAGE__->register_method({
|
||||
die "pipe requires cli environment\n"
|
||||
if $rpcenv->{type} ne 'cli';
|
||||
} else {
|
||||
$rpcenv->check_volume_access($authuser, $storecfg, $vmid, $archive);
|
||||
PVE::Storage::check_volume_access($rpcenv, $authuser, $storecfg, $vmid, $archive);
|
||||
$archive = PVE::Storage::abs_filesystem_path($storecfg, $archive);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user