How do you tell Magento about this new control option?

Posted by: Pdfprep Category: AD0-E703 Tags: , ,

You need to control access to a custom controller action.

How do you tell Magento about this new control option?
A . Create etc/acl.xml and add <resource id="MyCompany_MyModule::customAction" … />
B . In the controller, implement the _isAllowed method.
C . Create etc/adminhtml/acl.xml and add <acl id="MyCompany_MyModule::customAction"… />
D . Use the CLI to add the new resource option.

Answer: A

Leave a Reply

Your email address will not be published.