Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
设置magento中模块的权限_Magento_Module - Fatal编程技术网

设置magento中模块的权限

设置magento中模块的权限,magento,module,Magento,Module,如何在magento中设置自定义模块的权限 我已安装模块并尝试在adminpanel中设置权限,但该模块未出现在角色列表中。 但它不起作用。 请提供帮助。您的ACL需要在config.xml或adminhtml.xml中设置(如果在config.xml中,请将其括在中) 国防部标题 100 管理国防部 0 商店设置 10 管理订户 20 <acl> <resources> <admin>

如何在magento中设置自定义模块的权限

我已安装模块并尝试在adminpanel中设置权限,但该模块未出现在角色列表中。 但它不起作用。
请提供帮助。

您的ACL需要在config.xml或adminhtml.xml中设置(如果在config.xml中,请将其括在
中)


国防部标题
100
管理国防部
0
商店设置
10
管理订户
20
<acl>
        <resources>
            <admin>
                <children>
                    <your_mod_menu translate="title" module="your_mod">
                        <title>MOD TITLE</title>
                        <sort_order>100</sort_order>
                        <children>
                            <your_mod_news translate="title" module="your_mod">
                                <title> Manage Mod</title>
                                <sort_order>0</sort_order>
                            </your_mod_news>
                            <your_mod_store translate="title" module="your_mod">
                                <title>Store Settings</title>
                                <sort_order>10</sort_order>
                            </your_mod_store>
                            <your_mod_sub translate="title" module="your_mod">
                                <title>Manage Subscribers</title>
                                <sort_order>20</sort_order>
                            </your_mod_sub>
                        </children>
                    </your_mod_menu>
                </children>
            </admin>
        </resources>
    </acl>