Giter VIP home page Giter VIP logo

Comments (3)

m2-assistant avatar m2-assistant commented on June 10, 2024

Hi @vandijkstef. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

from magento2.

engcom-Dash avatar engcom-Dash commented on June 10, 2024

Hi @vandijkstef ,
Thank you for reporting and collaboration,

Verified the issue in 2.4-develop instance and the issue is not reproducible, Kindly refer below the screenshots:

Screenshot 2023-06-23 at 8 36 29 PM Screenshot 2023-06-27 at 3 09 34 PM

We followed the steps you mentioned.:

  • Created a new module
  • Assigned ACL rule to the module
  • Created API route to that module
  • Created 2 users, admin and admin2
  • Admin has access to everything.
  • Admin2 do not have access to the new module.
  • We called the API endpoints in postman using access token.
  • As we can see admin can access the API
  • Here admin2 cannot access the resource as he do not have permission.

Hence we can see that ACL rules are working fine.

Let us know if we are missing anything!

Thanks

from magento2.

vandijkstef avatar vandijkstef commented on June 10, 2024

The only thing that is different is that you created and configured users AFTER installing the module/new ACL's, so Magento was already aware of these permission rules and set them up correctly for these users.

I was referring to already EXISTING users with a limited permission set and specifically NOT saving the user after installing the new module, as the user save action is repairing/restoring the ACL permissions for that user.

Essentially, because there is no 'deny' entry in the database for that ACL/User combo, access is granted. So you could likely reproduce by removing that entry in DB as well.

from magento2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.