Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #23 from WaPoNe/master
Browse files Browse the repository at this point in the history
Inserted ACL management
  • Loading branch information
dmitridr authored Dec 15, 2017
2 parents 4477f95 + 5f2aa44 commit 448675c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
class Facebook_AdsExtension_Adminhtml_FbmainController
extends Mage_Adminhtml_Controller_Action {

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

public function indexAction() {
$this->loadLayout();
$this->_setActiveMenu('facebook_ads_extension');
Expand Down
12 changes: 12 additions & 0 deletions app/code/community/Facebook/AdsExtension/etc/adminhtml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<action>adminhtml/fbmain/index</action>
</facebook_ads_extension>
</menu>
<acl>
<resources>
<admin>
<children>
<facebook_ads_extension module="Facebook_AdsExtension">
<title>Facebook Ads Extension</title>
<sort_order>100</sort_order>
</facebook_ads_extension>
</children>
</admin>
</resources>
</acl>
</config>

0 comments on commit 448675c

Please sign in to comment.