]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/API2/LXC.pm
only root@pam should be able to add bind mounts
[pve-container.git] / src / PVE / API2 / LXC.pm
index 32151c8ab4d5cbef5c8d61aabae850f1feb04c9d..52ce4b042146d5bcb854f1bd3c535f6b8c3b50f8 100644 (file)
@@ -209,7 +209,7 @@ __PACKAGE__->register_method({
            raise_perm_exc();
        }
 
-       PVE::LXC::check_ct_modify_config_perm($rpcenv, $authuser, $vmid, $pool, [ keys %$param]);
+       PVE::LXC::check_ct_modify_config_perm($rpcenv, $authuser, $vmid, $pool, $param, []);
 
        my $storage = extract_param($param, 'storage') // 'local';
 
@@ -1247,7 +1247,7 @@ __PACKAGE__->register_method({
 
        die "no options specified\n" if !scalar(keys %$param);
 
-       PVE::LXC::check_ct_modify_config_perm($rpcenv, $authuser, $vmid, undef, [keys %$param]);
+       PVE::LXC::check_ct_modify_config_perm($rpcenv, $authuser, $vmid, undef, $param, []);
 
        my $storage_cfg = cfs_read_file("storage.cfg");