0

When I tried to add resource to a role, its not getting saved. The checkbox seems to uncheck after saving the role. The resource which I am giving is a custom module. I saw a thread with the same issue https://stackoverflow.com/questions/3196723/magento-custom-module-admin-permissions

But it doesnt help me. I followed the same way but still the issue exist.

I am writting config.xml as follows.

<acl>
            <resources>
                <all>
                    <title>Allow Everything</title>
                </all>
                <admin>
                    <children>
                        <Magestore_Bannerslider>
                            <title>Bannerslider Module</title>
                            <sort_order>10</sort_order>
                        </Magestore_Bannerslider>
                        <system>
                            <children>
                                <config>
                                    <children>
                                        <bannerslider translate="title" module="bannerslider"> 
                                            <title>Banner Slider Settings</title>
                                            <sort_order>50</sort_order>
                                        </bannerslider>
                                    </children>                         
                                </config>
                            </children>
                        </system>
                    </children>
                </admin>
            </resources>
        </acl>

Please help me.....

2
  • 1
    may be you can logout and login to check the roles? Magento doesn't load changes in the roles immediately.
    – Kalpesh
    Nov 19, 2013 at 11:13
  • I tried, but my problem is not solved. I cleared cache and done index management.
    – Akash Pius
    Nov 19, 2013 at 11:24

1 Answer 1

0

Thank guys for the help I sorted it out.The problem was with the config.xml. The changes I made is given below:

<admin>
                <children>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <bannerslider translate="title" module="bannerslider"> 
                                        <title>Banner Slider Settings</title>
                                        <sort_order>50</sort_order>
                                    </bannerslider>
                                </children>                         
                            </config>
                        </children>
                    </system>
                    <bannerslider>
                        <title>Bannerslider Module</title>
                        <sort_order>10</sort_order>
                        <children>
                            <items translate="title">
                                <title>Manage Banners</title>
                            </items>
                        </children>
                    </bannerslider>
                </children>
            </admin>

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.