【发布时间】:2014-07-17 16:45:52
【问题描述】:
我已经使用以下链接创建了带有 Rest API 的模块
Extending-the-Magento-REST-API
当我运行以下 URL /api/rest/magepim/products/count 时,我收到 403 错误。
对 magento 核心代码的深入研究表明这里存在这个问题
\app\code\core\Mage\Api2\Model\Server.php
字符串 #216
if (!$globalAcl->isAllowed($apiUser, $request->getResourceType(), $request->getOperation()))
示例中有什么问题?我猜原因是 xml 文件中缺少或不正确的 acl 但在哪里?
Magento 版本是 1.8
【问题讨论】:
标签: api magento rest magento-1.8