2

I created a new custom menu in backend. Now I want to select this new menu in order to give permissions (or not) to the roles that I have on my website. The problem is that this new custom menu doesn't appears in the resources of the role. You can see this menu only if you have all the access granted.

<?xml version="1.0"?>

<config>
    <menu>
        <sales>
            <children>
                <pump_orders translate="title" module="pump_orders">
                    <sort_order>10</sort_order>
                    <title>Orders - Pump</title>
                    <action>adminhtml/order/</action>
                </pump_orders>
            </children>
        </sales>
    </menu>
</config>

Anyone knows how to solve this ?

1 Answer 1

4

You need to set this in your config.xml or in adminhtml.xml, whichever best for you.

<acl><!-- permits -->
    <resources>
        <admin>
            <children>
                <sales>
                   <children>
                       <pump_orders translate="title" module="pump_orders">
                          <sort_order>10</sort_order>
                          <title>Orders - Pump</title>
                      </pump_orders>
                  </children>
                </sales>
            </children>
        </admin>
    </resources>
</acl>

This should make your menu item available in "permission" section, where you can set for different users.

Please read this article - Alan Storm has described here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.