]> git.proxmox.com Git - qemu-server.git/commitdiff
followup: expand check_vm_modify_config_perm comment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Apr 2019 14:19:45 +0000 (16:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Apr 2019 14:19:45 +0000 (16:19 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm

index 42227b0d51645914d4a175aa5b5640aa3d080470..651f64f58b7dafcea2a045c524b706e0af661b91 100644 (file)
@@ -307,7 +307,8 @@ my $check_vm_modify_config_perm = sub {
     return 1 if $authuser eq 'root@pam';
 
     foreach my $opt (@$key_list) {
-       # some checks need to be done somewhere else
+       # some checks (e.g., disk, serial port, usb) need to be done somewhere
+       # else, as there the permission can be value dependend
        next if PVE::QemuServer::is_valid_drivename($opt);
        next if $opt eq 'cdrom';
        next if $opt =~ m/^(?:unused|serial|usb)\d+$/;