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.

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 – 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

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x