-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin user with restricted "order create" access can "view", "cancel", etc via API #20169
Comments
Hi @milindsingh. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @milindsingh do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @GovindaSharma. Thank you for working on this issue.
|
@GovindaSharma Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @milindsingh. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
[Backport] Order API resources updated. magento#20169
Hi @milindsingh. Thank you for your report. The fix will be available with the upcoming 2.2.8 release. |
Preconditions (*)
Steps to reproduce (*)
Order create access
only. (as in image)API
via swagger and call thesalesOrderRepositoryV1
andsalesOrderManagementV1
API's.Expected result (*)
create
order neitherview
orcancel
Actual result (*)
Additional Information
The same resource
Magento_Sales::sales
is assigned to all the actions.magento2/app/code/Magento/Sales/etc/webapi.xml
Lines 8 to 280 in e62d140
While the different level of resources are available in the
Sales
module acl.xml.magento2/app/code/Magento/Sales/etc/acl.xml
Lines 1 to 54 in d7ac52b
The text was updated successfully, but these errors were encountered: