Skip to content

Commit

Permalink
Adding custom ACLs and changing menu entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainruaud committed Mar 22, 2017
1 parent 9e6cab7 commit 7f85327
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
29 changes: 29 additions & 0 deletions etc/acl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!--
/**
* Smile_Retailer ACLs.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Smile Elastic Suite to newer
* versions in the future.
*
*
* @category Smile
* @package Smile\Retailer
* @author Romain Ruaud <[email protected]>
* @copyright 2017 Smile
* @license Open Software License ("OSL") v. 3.0
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="Smile_Seller::sellers">
<resource id="Smile_Retailer::retailers" title="Manage Retailers"/>
</resource>
</resource>
</resources>
</acl>
</config>
9 changes: 8 additions & 1 deletion etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<!-- Manage Sellers -->
<add id="Smile_Retailer::retailers_menu"
title="Retailers"
module="Smile_Seller"
sortOrder="10"
parent="Smile_Seller::sellers"
resource="Smile_Seller::seller_menu"/>

<!-- Manage Retailers -->
<add id="Smile_Retailer::retailers"
title="Retailers"
module="Smile_Retailer"
sortOrder="20"
parent="Smile_Seller::sellers_menu"
parent="Smile_Retailer::retailers_menu"
action="smile_retailer/retailer/"
resource="Magento_Catalog::retailers"/>
</menu>
Expand Down

0 comments on commit 7f85327

Please sign in to comment.