Magento用户Permision访问被拒绝

时间:2016-11-29 19:27:04

标签: magento

我在Facebook像素扩展中出现此错误,对于用户或管理员

拒绝访问 请尝试注销并重新登录。 如果此消息仍然存在,请与商店联系

我已从adminhtml文件中删除了acl(文件路径 app / code / community / Facebook / AdsToolbox / etc / adminhtml.xml

并将其添加到所有控制器类

 protected function _isAllowed() {
     return true; }

它工作正常,但现在它又给了我相同的访问被拒绝错误。请帮忙

adminhtml.xml代码

  <?xml version="1.0" encoding="UTF-8"?>
    <config>
      <menu>
        <facebook_ads_toolbox translate="title"
          module="Facebook_AdsToolbox">
          <title>Facebook Ads Extension</title>
          <sort_order>72</sort_order>
          <action>adminhtml/fbmain/index</action>
        </facebook_ads_toolbox>
      </menu>

    </config>

Config.XML代码

 <?xml version="1.0" encoding="UTF-8" ?> 
- <config>
- <modules>
- <Facebook_AdsToolbox>
  <version>2.1.15</version> 
  </Facebook_AdsToolbox>
  </modules>
- <global>
- <models>
- <Facebook_AdsToolbox>
  <class>Facebook_AdsToolbox_Model</class> 
  </Facebook_AdsToolbox>
  </models>
- <blocks>
- <Facebook_AdsToolbox>
  <class>Facebook_AdsToolbox_Block</class> 
  </Facebook_AdsToolbox>
  </blocks>
- <helpers>
- <Facebook_AdsToolbox>
  <class>Facebook_AdsToolbox_Helper</class> 
  </Facebook_AdsToolbox>
  </helpers>
- <events>
- <checkout_cart_product_add_after>
- <observers>
- <Facebook_AdsToolbox_Cart_Observer>
  <type>object</type> 
  <class>Facebook_AdsToolbox_Model_Observer</class> 
  <method>addToCart</method> 
  </Facebook_AdsToolbox_Cart_Observer>
  </observers>
  </checkout_cart_product_add_after>
- <controller_action_predispatch_adminhtml>
- <observers>
- <Facebook_AdsToolbox_NoCache_Observer>
  <type>object</type> 
  <class>Facebook_AdsToolbox_Model_Observer</class> 
  <method>disableCache</method> 
  </Facebook_AdsToolbox_NoCache_Observer>
  </observers>
  </controller_action_predispatch_adminhtml>
  </events>
  </global>
- <frontend>
- <layout>
- <updates>
- <FacebookAdsToolbox module="Facebook_AdsToolbox">
  <file>facebookadstoolbox.xml</file> 
  </FacebookAdsToolbox>
  </updates>
  </layout>
- <routers>
- <facebook_debug>
  <use>standard</use> 
- <args>
  <module>Facebook_AdsToolbox</module> 
  <frontName>facebookadstoolbox</frontName> 
  </args>
  </facebook_debug>
  </routers>
  </frontend>
- <admin>
- <routers>
- <adminhtml>
- <args>
- <modules>
  <Pixel after="Mage_Adminhtml">Facebook_AdsToolbox_Adminhtml</Pixel> 
  </modules>
  </args>
  </adminhtml>
  </routers>
  </admin>
- <adminhtml>
- <layout>
- <updates>
- <FacebookAdsToolbox module="Facebook_AdsToolbox_Adminhtml">
  <file>facebookadstoolbox.xml</file> 
  </FacebookAdsToolbox>
  </updates>
  </layout>
  </adminhtml>
- <crontab>
- <jobs>
- <facebookadstoolbox_feed_regenerate>
- <schedule>
  <cron_expr>59 00 * * *</cron_expr> 
  </schedule>
- <run>
  <model>Facebook_AdsToolbox/observer::generateFacebookProductFeed</model> 
  </run>
  </facebookadstoolbox_feed_regenerate>
  </jobs>
  </crontab>
  </config>

0 个答案:

没有答案