I have defined a custom menu item for the Magento admin interface with several sub-items.
This works very well as expected when a user with an administrator role logs in to the admin interface. The administrator sees all the auxiliary elements and can also access the pages to which the elements link. Each of these pages shows the contents of the database table in the grid.
But problems arise when I try to use a user role. The user role has access to the menu item and its items. Now, when I enter the admin interface with the user with this custom role, the user sees all the menu items as expected, but for two sub-items the user receives an access denied message when he clicks on the sub-item.
Here is the acl and menu element from config.xml.
... <adminhtml> <acl> <resources> <admin> <children> <deliveryservice translate="title"> <title>Deliveryservice</title> <sort_order>300</sort_order> <children> <holiday translate="title" module="deliveryservice"> <title>Holidays</title> <sort_order>5</sort_order> </holiday> <holidayset translate="title" module="deliveryservice"> <title>Holidaysets</title> <sort_order>10</sort_order> </holidayset> <openinghour translate="title" module="deliveryservice"> <title>Openinghours</title> <sort_order>20</sort_order> </openinghour> <delivery_address translate="title" module="deliveryservice"> <title>Delivery Areas</title> <sort_order>30</sort_order> </delivery_address> <minimum_order_value translate="title" module="deliveryservice"> <title>Minimum order value</title> <sort_order>40</sort_order> </minimum_order_value> <key_value_store translate="title" module="deliveryservice"> <title>Key Value Store</title> <sort_order>50</sort_order> </key_value_store> <ratings translate="title" module="deliveryservice"> <title>Bewertungen</title> <sort_order>60</sort_order> </ratings> </children> </deliveryservice> </children> </admin> </resources> </acl> <menu> <deliveryservice translate="title"> <title>Deliveryservice</title> <sort_order>300</sort_order> <children> <holiday translate="title" module="deliveryservice"> <title>Holidays</title> <sort_order>5</sort_order> <action>adminhtml/holiday/</action> </holiday> <holidayset translate="title" module="deliveryservice"> <title>Holidaysets</title> <sort_order>10</sort_order> <action>adminhtml/holidayset/</action> </holidayset> <openinghour translate="title" module="deliveryservice"> <title>Openinghours</title> <sort_order>20</sort_order> <action>adminhtml/openinghour/</action> </openinghour> <delivery_address translate="title" module="deliveryservice"> <title>Delivery Areas</title> <sort_order>30</sort_order> <action>adminhtml/deliveryaddress/</action> </delivery_address> <minimum_order_value translate="title" module="deliveryservice"> <title>Minimum Order Values</title> <sort_order>40</sort_order> <action>adminhtml/minimumordervalue/</action> </minimum_order_value> <key_value_store translate="title" module="deliveryservice"> <title>Key Value Store</title> <sort_order>50</sort_order> <action>adminhtml/keyvaluestore/</action> </key_value_store> <ratings translate="title" module="deliveryservice"> <title>Bewertungen</title> <sort_order>60</sort_order> <action>adminhtml/ratings/</action> </ratings> </children> </deliveryservice> </menu> </adminhtml> ...
The problem occurs for the menu items minimum_order_value and key_value_store.
I don’t understand why the administrator can access all pages, but the other role cannot. Any ideas what could be the problem here?
source share