How do you visually check if Magento evaluates your ACL resource as expected?

The module MyCompany_MyModule provides custom admin interface pages.

Access to these pages should only be granted to specific users.

You add the required configuration to the module’s acl.xml file, but the setting does not seem to work as expected.

How do you visually check if Magento evaluates your ACL resource as expected?
A . Write a plugin for the class MagentoFrameworkAclLoaderInterface::populateAcl() and echo out the loaded roles
B . Inspect the output of the CLI command bin/magento admin:role:resources C all
C . In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources
D . Inspect the response of a GET request to the webapi endpoint http://example.com/rest/V1/acl/resources

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments