From: Dietmar Maurer Date: Wed, 18 Jan 2017 16:18:54 +0000 (+0100) Subject: use new PVE::Storage::check_volume_access() X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;ds=sidebyside;h=f26c66e06b5b2b2969a845026f70b53a100d2218;p=pve-container.git use new PVE::Storage::check_volume_access() --- diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index cb8df4a..0004c97 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -236,7 +236,7 @@ __PACKAGE__->register_method({ $archive = '-'; die "restore from pipe requires rootfs parameter\n" if !defined($param->{rootfs}); } else { - $rpcenv->check_volume_access($authuser, $storage_cfg, $vmid, $ostemplate); + PVE::Storage::check_volume_access($rpcenv, $authuser, $storage_cfg, $vmid, $ostemplate); $archive = PVE::Storage::abs_filesystem_path($storage_cfg, $ostemplate); }