Categories


Archives


Recent Posts


Categories


Missing ACL Roles in Admin

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

If you’ve setup your own API methods and are having some trouble getting the resources to show up in the admin console’s resource list, make sure that each resource ACL group node and each each individual ACL node in api.xml have a module= translation attribute

<assign_simple_product_to_configurable translate="title" module="pulsestorm_mercuryapi">

It turns out the block responsible for building a list of these resources to render as JSON (Mage_Adminhtml_Block_Api_Tab_Rolesedit) checks for this attribute, and if it doesn’t find it, will skip rendering the role in the Admin console, meaning the role can’t ever be assigned.

Copyright © Alana Storm 1975 – 2023 All Rights Reserved

Originally Posted: 25th February 2012

email hidden; JavaScript is required