Php Magento 1中的新模块ACL配置
我刚刚在我的Magento网站上安装了一个新模块。我创建了一个新的用户角色组,并授予使用此模块的权限。在我检查权限并保存它之后,它就不工作了,除此之外,权限仍然是未检查的 我在网上搜索,问题可能出在config.xml中 config.xml中有一部分代码:Php Magento 1中的新模块ACL配置,php,magento,Php,Magento,我刚刚在我的Magento网站上安装了一个新模块。我创建了一个新的用户角色组,并授予使用此模块的权限。在我检查权限并保存它之后,它就不工作了,除此之外,权限仍然是未检查的 我在网上搜索,问题可能出在config.xml中 config.xml中有一部分代码: <menu> <customer> <children>
<menu>
<customer>
<children>
<customerproducts module="customer">
<title>Customer Products Settings</title>
<sort_order>1000</sort_order>
<action>adminhtml/system_config/edit/section/customerspecificproduct</action>
</customerproducts>
</children>
</customer>
</menu>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<Mconnect_Csproduct>
<title>csproduct Module</title>
<sort_order>10</sort_order>
</Mconnect_Csproduct>
<system>
<children>
<config>
<children>
<customerspecificproduct translate="title" module="csproduct">
<title>Mconnect Customer Specific Product</title>
</customerspecificproduct>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
客户产品设置
1000
adminhtml/system\u config/edit/section/customerspecificproduct
允许一切
csproduct模块
10
McConnect客户特定产品
有人能告诉我这个代码的问题在哪里吗?
谢谢大家! 替换此代码
<customerspecificproduct translate="title" module="csproduct">
<title>Mconnect Customer Specific Product</title>
</customerspecificproduct>
McConnect客户特定产品
与
McConnect客户特定产品
有一个很好的做法,就是让adminhtml.xml文件具有ACL配置,然后在config.xml中发布所有内容。
<customerproducts translate="title" module="csproduct">
<title>Mconnect Customer Specific Product</title>
</customerproducts>