【发布时间】:2018-10-17 07:59:12
【问题描述】:
我认为核心 Mage_Paypal 模块在 adminhtml.xml 中的 ACL 代码存在错误。
在第 170 行的 app/core/Mage/Adminhtml/Model/Config/Data.php 中,路径“paypal/general/merchant_country”似乎不是不允许的:
if (!Mage::getSingleton('admin/session')->isAllowed($configPath)) {
Mage::throwException('Access denied.');
}
adminhtml.xml 文件是这样的:
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<paypal>
<title>PayPal Section</title>
</paypal>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
在 system.xml 中,我找不到任何可以保存配置值的 paypal 部分,只有一个字段“payment/account/merchant_country”,其 config_path 标记的值为“paypal/general/merchant_country”。
【问题讨论】:
-
您找到解决方案了吗?我遇到了同样的问题