]> git.proxmox.com Git - pve-storage.git/commit
disk api: only ask for Datastore.Allocate if adding to storage config
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 17 Jun 2023 12:53:05 +0000 (14:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 17 Jun 2023 12:57:20 +0000 (14:57 +0200)
commit8bd984a18106ef630e802bc73a590da59c5edd24
treedd543db7a676cf1c17b841c7442717bc0080ac78
parent2deca27032af77f03008db817e2251ca93713ca2
disk api: only ask for Datastore.Allocate if adding to storage config

The Proxmox VE storage systems doesn't cares at all if the
Datastore.Allocate privilege is present if no Proxmox VE storage will
be allocated.

Note, if we want to restrict this further as Sys.Modify on /, which
is already quite a powerful permission, we should probably add a new
one under the Sys. space, e.g., Sys.Disk.Use or the like.

This is a step in splitting the disk manage code out of the
pve-storage package, and maybe even repository

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/Disks/Directory.pm
src/PVE/API2/Disks/LVM.pm
src/PVE/API2/Disks/LVMThin.pm
src/PVE/API2/Disks/ZFS.pm