Monday, June 10, 2013

How to Set Permission on Custom module in magento? Solved

I have got the solution, I think It will help you.
Here it is:
Lets say my module name is fabric

Change your /app/code/local/<Namespace>/<Module>/etc/config.xml

        <acl>
            <resources>
                <all>
                    <title>Allow Everything</title>
                </all>
                <admin>
                    <children>
                        <Store_Fabric>
                            <title>Swatches</title>
                            <sort_order>10</sort_order>
                        </Store_Fabric>
                    </children>
                </admin>
            </resources>
        </acl>


To :
        <acl>
            <resources>
                <all>
                    <title>Allow Everything</title>
                </all>
                <admin>
                    <children>
                       <fabric translate="title" module="fabric">
                            <title>Swatches</title>
                            <sort_order>10</sort_order>
                            <children>
                                <items module="fabric">
                                   <title>Manage Swatches</title>
                                    <sort_order>0</sort_order>
                                       <action>fabric/adminhtml_fabric</action>
                                </items>
                            </children>
                        </fabric>
                    </children>
                </admin>
            </resources>
        </acl>


Thanks
Vipin Choudhary

2 comments:

  1. you can download the module from
    http://www.webspeaks.in/2010/08/create-your-first-adminbackend-module.html

    ReplyDelete
  2. great you have given the correct answer thanks....

    ReplyDelete