mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 21:24:01 +00:00
api: backup pool: enforce VM.Backup permissions on pool
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a82afef0b9
commit
16f5b2834e
@ -427,6 +427,11 @@ __PACKAGE__->register_method({
|
||||
my $rpcenv = PVE::RPCEnvironment::get();
|
||||
my $user = $rpcenv->get_user();
|
||||
|
||||
if (my $pool = $param->{pool}) {
|
||||
$rpcenv->check_pool_exist($pool);
|
||||
$rpcenv->check($user, "/pool/$pool", ['VM.Backup']);
|
||||
}
|
||||
|
||||
my $update_job = sub {
|
||||
my $data = cfs_read_file('vzdump.cron');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user