]> git.proxmox.com Git - pve-container.git/commit - src/PVE/API2/LXC.pm
reassign mp: fix permission checks
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 10 Nov 2021 10:55:38 +0000 (11:55 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 10 Nov 2021 10:55:38 +0000 (11:55 +0100)
commitd568e8db044a8b52cbc66fe1efa0d0ab82a3a8dd
treeba9d83598162fe54b41c7ce91ef9da913dc91cc9
parent27e28f79cb75adb4248136e0efcd07751455ee28
reassign mp: fix permission checks

with `storage` being optional (and not allowed for reassign operations),
the ACL path in the schema can end up as `/storage/-`, which is wrong.
replace it with an explicit check:

- target `storage` for move mp
- storage from source disk for reassign mp (we only rename here, but
  it's still a new volume on that storage after all)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/API2/LXC.pm