From f26c66e06b5b2b2969a845026f70b53a100d2218 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 18 Jan 2017 17:18:54 +0100 Subject: [PATCH] use new PVE::Storage::check_volume_access() --- src/PVE/API2/LXC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2