Skip to content

Commit

Permalink
Merge pull request #13 from 808brinks/master
Browse files Browse the repository at this point in the history
Enable api rights management
  • Loading branch information
808brinks authored Nov 19, 2019
2 parents ff08313 + 128a668 commit d504cbd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mailplus/mailplus-connector",
"description": "The MailPlus connector for magento 2",
"type": "magento2-module",
"version": "1.4.7",
"version": "1.5.0",
"license": [
"OSL-3.0"
],
Expand Down
12 changes: 12 additions & 0 deletions etc/acl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.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="MailPlus_MailPlus::healthcheck" title="Spotler health check" sortOrder="51">
</resource>
</resource>
</resources>
</acl>
</config>
4 changes: 2 additions & 2 deletions etc/webapi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<route url="/V1/mailplus/subscribers/:id" method="PUT">
<service class="MailPlus\MailPlus\Api\SubscriberRepositoryInterface" method="save"/>
<resources>
<resource ref="MailPlus_MailPlus::subscriber"/>
<resource ref="Magento_Newsletter::subscriber"/>
</resources>
</route>
<route url="/V1/mailplus/orders" method="GET">
Expand All @@ -38,4 +38,4 @@
<resource ref="Magento_CatalogRule::promo_catalog"/>
</resources>
</route>
</routes>
</routes>

0 comments on commit d504cbd

Please sign in to comment.