]> git.proxmox.com Git - pve-container.git/commit
add old config and unprivileged to check_ct_modify_config_perm
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 4 Aug 2021 10:51:07 +0000 (12:51 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 4 Aug 2021 11:14:40 +0000 (13:14 +0200)
commitde41bced64f7b4ebb627ef30f166e140ec2b34f1
tree89dc0a06f1c192da4b06024bb156736cd3ab7308
parent91749ee93462a8b749ba0d78a3d1bdd5dfd81afc
add old config and unprivileged to check_ct_modify_config_perm

we'll need that for checking the features more granularly
for it to work correctly, we have to move the permission checks
into the 'lock_config' sub, since we now also need to check the current
config and it could change between the permission check and the lock

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/API2/LXC.pm
src/PVE/API2/LXC/Config.pm
src/PVE/LXC.pm