From 775fdc697df0673805b91ae58653d6e5b006e889 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 5 Feb 2019 17:19:35 +0100 Subject: [PATCH] followup: improve comment while the commit message tells it nicely a comment should add additional info for people just giving this a quick look Signed-off-by: Thomas Lamprecht --- PVE/Storage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index a1c4a14..6ad88d3 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -399,7 +399,7 @@ sub check_volume_access { if ($sid) { my ($vtype, undef, $ownervm) = parse_volname($cfg, $volid); if ($vtype eq 'iso' || $vtype eq 'vztmpl') { - # at least read access to storage + # require at least read access to storage, (custom) templates/ISOs could be sensitive $rpcenv->check_any($user, "/storage/$sid", ['Datastore.AllocateSpace', 'Datastore.Audit']); } elsif (defined($ownervm) && defined($vmid) && ($ownervm == $vmid)) { # we are owner - allow access -- 2.39.2