IcecatNV / magento-extension

MIT License
2 stars 9 forks source link

ACL role permission issue #12

Open zeel1012 opened 11 months ago

zeel1012 commented 11 months ago

Environment

Module Version: 2.0.0 (icecat/magento2-extension). Magento Version: 2.4.6-p2.

Issue Description: We can’t able to give permission to access module configuration settings for other roles

Screenshots Here, you can see in screenshot 1 that the administrator has access to Icecate module configuration settings. image

Here, you can see in screenshot 2 that, there is no resource available to give permission for this module configuration settings. image

Steps to Reproduce(In Default Magento):

  1. Get the Magento clean shop
  2. Install the Icecat_DataFeed module 2.0.0.
  3. Go to the “Admin->System->User Roles” and Add New Role.
  4. Go to Admin->System->User Roles->Role resources
  5. Observe.

    Expected Behavior:
    Administrator should give permission to module configuration for other roles and module configuration should be visible for another role user as well.

    Actual Behavior
    Not available resources for module configuration on role resource. And not visible module configuration settings in other roles except the administrator.

Additional information:
Reason In this module, there is no implemented ACL(Access Control List) for module configuration, that's why it is not showing in the role resource and the administrator can’t able to give permission to other roles. So, we need to create an ACL file for this module(i.e etc/acl.xml ).