mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 14:36:27 +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 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 $create_job = sub {
|
||||||
my $data = cfs_read_file('vzdump.cron');
|
my $data = cfs_read_file('vzdump.cron');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user