diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm index 0577942f..269abbd0 100644 --- a/PVE/API2/Tasks.pm +++ b/PVE/API2/Tasks.pm @@ -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; }});