Skip to content

Commit

Permalink
Merge pull request #72 from sebfie/add-acl
Browse files Browse the repository at this point in the history
Add acl to manage who access truspilot menu !
  • Loading branch information
vilgro authored Apr 7, 2020
2 parents 6680549 + cb989fa commit 62c3394
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions etc/acl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="Trustpilot_Reviews::trustpilot" title="Truspilot Reviews Menu" sortOrder="10"></resource>
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Trustpilot_Reviews::settings" title="Trustpilot Reviews Settings">
<!-- this resource id we can use in system.xml for section -->
<resource id="Trustpilot_Reviews::configuration" title="Trustpilot Reviews Section" sortOrder="2" />
</resource>
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>

0 comments on commit 62c3394

Please sign in to comment.