Skip to content

Commit

Permalink
Merge pull request #9 from zkliouel/fix-acl
Browse files Browse the repository at this point in the history
Fix acl issues
  • Loading branch information
romainruaud authored Apr 19, 2017
2 parents e02b32b + cc09366 commit b4d9890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Controller/Adminhtml/AbstractRetailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ protected function createPage()
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Smile_Retailer::manage');
return $this->_authorization->isAllowed('Smile_Retailer::retailers');
}
}
4 changes: 2 additions & 2 deletions etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
module="Smile_Seller"
sortOrder="10"
parent="Smile_Seller::sellers"
resource="Smile_Seller::seller_menu"/>
resource="Smile_Seller::sellers"/>

<!-- Manage Retailers -->
<add id="Smile_Retailer::retailers"
Expand All @@ -31,6 +31,6 @@
sortOrder="20"
parent="Smile_Retailer::retailers_menu"
action="smile_retailer/retailer/"
resource="Magento_Catalog::retailers"/>
resource="Smile_Retailer::retailers"/>
</menu>
</config>

0 comments on commit b4d9890

Please sign in to comment.