]> git.proxmox.com Git - pve-container.git/commitdiff
use new PVE::Storage::check_volume_access()
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 18 Jan 2017 16:18:54 +0000 (17:18 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 18 Jan 2017 16:18:54 +0000 (17:18 +0100)
src/PVE/API2/LXC.pm

index cb8df4a496b7b1d6101efb91da890ef85250cb32..0004c97653919c2496b8442d4005edf15fe67181 100644 (file)
@@ -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);
        }