0

How we can set the permission of a custom module in magento?

I have installed a module and try to set the permission in the adminpanel but the module is not appearing in the Role List. But Its not working. Please help.

4

1 回答 1

0

您的 ACL 需要在 config.xml 或 adminhtml.xml 中设置(如果在 config.xml 中包含在 中<adminhtml>)。

<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>
于 2013-06-10T19:44:53.297 回答