mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 09:01:32 +00:00
REST/RPCEnvironment's check_worker is a method now
This commit is contained in:
parent
804e97f9ec
commit
f70fc9ace9
@ -191,7 +191,7 @@ __PACKAGE__->register_method({
|
||||
$rpcenv->check($user, "/nodes/$node", [ 'Sys.Modify' ]);
|
||||
}
|
||||
|
||||
PVE::RPCEnvironment::check_worker($param->{upid}, 1);
|
||||
PVE::RPCEnvironment->check_worker($param->{upid}, 1);
|
||||
|
||||
return undef;
|
||||
}});
|
||||
|
Loading…
Reference in New Issue
Block a user