mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 20:36:20 +00:00
restore: early check cloud init target AllocateSpace permission
Originally-by: Matthias Heiserer <m.heiserer@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
62af60cd3d
commit
9f8ba326ce
@ -6272,6 +6272,9 @@ my $parse_backup_hints = sub {
|
||||
die "Content type 'images' is not available on storage '$storeid'\n"
|
||||
if !$scfg->{content}->{images};
|
||||
|
||||
$rpcenv->check($user, "/storage/$storeid", ['Datastore.AllocateSpace'])
|
||||
if $user ne 'root@pam';
|
||||
|
||||
$virtdev_hash->{$virtdev} = {
|
||||
format => $format,
|
||||
storeid => $storeid,
|
||||
|
Loading…
Reference in New Issue
Block a user