Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to modify navadmin so permissions can be granted to user groups with custom resource access. 
 
wally101
Jr. Member
 
Total Posts:  18
Joined:  2009-07-13
 

Versions:
Magento: 1.3.2.2
NavAdmin: 1.1.4
Problem: User groups with “Allow All” resource access (ie. super admins) can view and access navadmin admin menu items, but User groups with “Custom” resource access can not be given permission to view and access navadmin admin menu items. (the check box can be selected but will not save)

By following the example by anjandoshi in the forum
http://www.magentocommerce.com/boards/viewthread/2556/
I edited the file \app\code\community\Mage\Navadmin\etc\config.xml to this;

<?xml version="1.0"?>
<config>
    <
modules>
        <
Mage_Navadmin>
            <
version>0.1.0</version>
        </
Mage_Navadmin>
    </
modules>
    <
frontend>
        <
routers>
            <
navadmin>
                <use>
standard</use>
                <
args>
                    <
module>Mage_Navadmin</module>
                    <
frontName>navadmin</frontName>
                </
args>
            </
navadmin>
        </
routers>
        <
layout>
            <
updates>
                <
navadmin>
                    <
file>navadmin.xml</file>
                </
navadmin>
            </
updates>
        </
layout>
    </
frontend>
    <
admin>
        <
routers>
            <
navadmin>
                <use>
admin</use>
                <
args>
                    <
module>Mage_Navadmin</module>
                    <
frontName>navadmin</frontName>
                </
args>
            </
navadmin>
        </
routers>
    </
admin>
    <
adminhtml>
<!--
beginning of changes-->    
        <
menu>
             <
cms>
                <
children>
                    <
navadminmain module="navadmin">
                        <
title>Navigation Bar</title>
                        <
sort_order>71</sort_order>
                        <
children>
                            <
navadminmanage module="navadmin">
                                <
title>Manage Items</title>
                                <
sort_order>0</sort_order>
                                <
action>navadmin/adminhtml_navadmin</action>
                            </
navadminmanage>
                        </
children>
                    </
navadminmain>
                </
children>
            </
cms>
        </
menu>
        <
acl>
            <
resources>
                <
all>
                    <
title>Allow Everything</title>
                </
all>
                <
admin>
                    <
children>
                        <
cms>
                            <
children>
                                <
navadminmain module="navadmin">
                                    <
title>Navadmin Module</title>
                                    <
sort_order>100</sort_order>
                                        <
children>
                                            <
navadminmanage>
                                                <
title>Manage Items</title>
                                            </
navadminmanage>
                                        </
children>
                                </
navadminmain>
                            </
children>
                        </
cms>
                    </
children>
                </
admin>
            </
resources>
        </
acl>
<!--
end of changes-->        
        <
layout>
            <
updates>
                <
navadmin>
                    <
file>navadmin.xml</file>
                </
navadmin>
            </
updates>
        </
layout>
    </
adminhtml>
    <global>
        <
models>
            <
navadmin>
                <class>
Mage_Navadmin_Model</class>
                <
resourceModel>navadmin_mysql4</resourceModel>
            </
navadmin>
            <
navadmin_mysql4>
                <class>
Mage_Navadmin_Model_Mysql4</class>
                <
entities>
                    <
navadmin>
                        <
table>navadmin</table>
                    </
navadmin>
                </
entities>
            </
navadmin_mysql4>
        </
models>
        <
resources>
            <
navadmin_setup>
                <
setup>
                    <
module>Mage_Navadmin</module>
                </
setup>
                <
connection>
                    <use>
core_setup</use>
                </
connection>
            </
navadmin_setup>
            <
navadmin_write>
                <
connection>
                    <use>
core_write</use>
                </
connection>
            </
navadmin_write>
            <
navadmin_read>
                <
connection>
                    <use>
core_read</use>
                </
connection>
            </
navadmin_read>
        </
resources>
        <
blocks>
            <
navadmin>
                <class>
Mage_Navadmin_Block</class>
            </
navadmin>
        </
blocks>
        <
helpers>
            <
navadmin>
                <class>
Mage_Navadmin_Helper</class>
            </
navadmin>
        </
helpers>
    </global>
</
config>
Once edited fully configureable user group permissions were possible.
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top