Fix the "Permission denied" problem in API RPC for customers
When using API RPC in an extension it returns "Permission denied" response for customers on any function in version 12.0.18 update #5. There is similar problem in version 11.5.30 update #47 except that the error is thrown in try..catch statement calling "pm_ApiRpc::getService()" method.
Thank you for reporting this issue. It was fixed in one of the updates for Plesk 12.0. Additional details are available in Eugene’s comment.
—AK
-
Eugene Kazakov commented
We have fixed this problem in 12.0
See documentation: http://download1.parallels.com/Plesk/PP12/12.0/Doc/en-US/online/plesk-extensions-guide/71086.htm
The interface is backward compatible in order to prevent security issues.
Try this: pm_ApiRpc::getService()->call($request, 'admin');