cancel
Showing results for 
Search instead for 
Did you mean: 

Module Roles Problem

Module Roles Problem

Hi,

 

We have installed the module bannerpopup by Magebuzz http://www.magentocommerce.com/magento-connect/homepage-banner-popup.html The module has installed fine however only admins with full access can view and use the module in the back end. As soon as a user role is changed to custom resource access it disappears. I wondered if anyone knew of a way of fixing this issue as we do not seem to be getting a reply from the developers.

1 REPLY 1

Re: Module Roles Problem

Hello jasonatextra,

 

I think if you decide to use this extension! I recommend you should check SUPEE-6788 for your site and this extension

Back to this extension, we meet Access denied because wrong config node in adminhtml.xml, acl node should be changed to:

#app/code/community/Magebuzz/Bannerpopup/etc/adminhtml.xml
<acl>
    <resources>
      <all>
        <title>Allow Everything</title>
      </all>
      <admin>
        <children>
          <cms translate="title" module="cms">
            <children>
              <bannerpopup translate="title">
                <title>Banner Popup</title>
                <sort_order>10</sort_order>
                <children>
                   <items module="bannerpopup">
                     <title>Manage Banners</title>
                     <sort_order>0</sort_order>
                   </items>
                  <config module="bannerpopup">
                    <title>Setting</title>
                    <sort_order>2</sort_order>
                  </config>
                </children>
              </bannerpopup>
            </children>
          </cms>
        </children>
      </admin>
    </resources>
  </acl>

 

And add _isAllowed() function to  controller adminhtml:

#app/code/community/Magebuzz/Bannerpopup/controllers/Adminhtml/BannerpopupController.php

protected function _isAllowed()
  {
    return Mage::getSingleton('admin/session')->isAllowed('cms/bannerpopup/items');
  }

You should read more here: http://www.ecomdev.org/2010/10/28/defining-acl-resources-custom-and-admin-menu-in-magento.html

 

Problem solved? Click Accept as Solution!