2

I tried to add new checkbox into System -> Permissions -> Roles. I added this xml at the adminxml.xml, but it is doesn't work. Where is my fault ?

I want to block Catalog -> Product/Category Filter

 <?xml version="1.0" encoding="utf-8"?>
    <config>
        <menu>
            <catalog>
                <children>
                    <blocks translate="title" module="agentproductblocks">
                        <title>Product/Category Filtering</title>
                        <action>agentproductblocks/adminhtml_blocks</action>
                        <sort_order>300</sort_order>
                    </blocks>
                </children>
            </catalog>
        </menu>

        <acl>
            <resources>
                <admin>
                    <children>
                        <catalog>
                            <blocks translate="title" module="agentproductblocks">
                                <title>Product/Category Filtering</title>
                                <sort_order>300</sort_order>
                            </blocks>
                        </catalog>
                    </children>
                </admin>
            </resources>
        </acl>
    </config>

1 Answer 1

1

adminhtml.xml

<?xml version="1.0"?>
<config>
    <menu>
        <catalog>
            <children>
                <blocks translate="title" module="agentproductblocks">
                    <title>Product/Category Filtering</title>
                    <action>agentproductblocks/adminhtml_blocks</action>
                    <sort_order>300</sort_order>
                </blocks>
            </children>
        </catalog>
    </menu>
    <acl>
        <resources>
            <all>
                <title>Allow Everything</title>
            </all>
            <admin>
                <children>
                    <catalog>
                        <children>
                            <blocks translate="title" module="agentproductblocks">
                                <title>Product/Category Filtering</title>
                                <sort_order>300</sort_order>
                            </blocks>
                        </children>
                    </catalog>
                </children>
            </admin>
        </resources>
    </acl>
</config>
1

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.