use PVE::Cluster;
use PVE::ProcFSTools;
use PVE::AccessControl;
+use Cwd 'abs_path';
use CGI;
# we use this singleton class to pass RPC related environment values
# test if we have read access to volid
my $path;
- if (my ($sid, $volname) = PVE::Storage::parse_volume_id($volid, 1)) {
+ my ($sid, $volname) = PVE::Storage::parse_volume_id($volid, 1);
+ if ($sid) {
my ($ownervm, $vtype);
($path, $ownervm, $vtype) = PVE::Storage::path($storecfg, $volid);
if ($vtype eq 'iso' || $vtype eq 'vztmpl') {
+libpve-access-control (1.0-9) unstable; urgency=low
+
+ * fix bug in check_volume_access (fixes vzrestore)
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 13 Feb 2012 09:56:37 +0100
+
libpve-access-control (1.0-8) unstable; urgency=low
* fix return value for empty ACL list.