Friday 19 June 2015

Custom module role not save in Permission magento


Custom module role not save in Permission magento

In magento many people trouble from this issue. Here i have done mini patch in config file.
Open the config.xml of module and overwrite the below code of <acl> section and replce the name of your module.

Here is my acl section of config.xml

<acl>
    <resources>
        <all>
            <title>Allow Everything</title>
        </all>
        <admin>
            <children>
                <banner translate="title" module="banner">
                    <title>Banner Module</title>
                    <sort_order>10</sort_order>
                    <children>
                        <banner translate="title" module="banner">
                            <title>Manage Banners</title>
                        </banner>                      
                    </children>
                </banner>
            </children>
        </admin>
    </resources>
</acl>

Also add the below function in your controller to avoid the "Access denied" message

protected function _isAllowed(){
        return true;
}

No comments: