]> git.proxmox.com Git - pve-storage.git/commitdiff
followup: improve comment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Feb 2019 16:19:35 +0000 (17:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Feb 2019 16:42:42 +0000 (17:42 +0100)
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 <t.lamprecht@proxmox.com>
PVE/Storage.pm

index a1c4a148a790956dab348f59ec72679e9a4f749c..6ad88d3d41b92b9a975a91d8b89af3578a78c0c1 100755 (executable)
@@ -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