REST/RPCEnvironment's check_worker is a method now

This commit is contained in:
Wolfgang Bumiller 2017-01-26 11:13:21 +01:00 committed by Fabian Grünbichler
parent 804e97f9ec
commit f70fc9ace9

View File

@ -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;
}});