mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 01:26:39 +00:00
api: backup pool: enforce VM.Backup permissions on pool also on create
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5ab9a24383
commit
c92c54d54b
@ -270,6 +270,12 @@ __PACKAGE__->register_method({
|
||||
if defined($param->{$key}) && ($user ne 'root@pam');
|
||||
}
|
||||
|
||||
if (my $pool = $param->{pool}) {
|
||||
$rpcenv->check_pool_exist($pool);
|
||||
$rpcenv->check($user, "/pool/$pool", ['VM.Backup']);
|
||||
}
|
||||
|
||||
|
||||
my $create_job = sub {
|
||||
my $data = cfs_read_file('vzdump.cron');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user