PdfPrep.com

How do you tell Magento about this new control option?

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

Exit mobile version