我创建了一个模块,它运行完美。但是,我撞墙了。当我以管理员身份登录时,一切都很好。我在acl中添加了它:
<?xml version="1.0"?>
<config>
<menu>
<erp translate="title" module="firtal_deadstock">
<title>ERP</title>
<sort_order>99</sort_order>
<children>
<stock_management module="firtal_deadstock">
<title>Stock Management</title>
<children>
<firtal_deadstock>
<title><![CDATA[Firtal Stock Analysis]]></title>
<sort_order>99</sort_order>
<action>adminhtml/deadstock</action>
</firtal_deadstock>
</children>
</stock_management>
</children>
</erp>
</menu>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<system>
<children>
<config>
<children>
<firtal_deadstock translate="title">
<title>Firtal Stock Analysis settings</title>
<sort_order>100</sort_order>
</firtal_deadstock>
</children>
</config>
</children>
</system>
<erp module="firtal_deadstock">
<children>
<stock_management module="firtal_deadstock">
<children>
<firtal_deadstock translate="title" module="firtal_deadstock">
<title>Firtal Stock Analysis</title>
</firtal_deadstock>
</children>
</stock_management>
</children>
</erp>
</children>
</admin>
</resources>
</acl>
</config>
但是,如果我授予角色权限并以该角色的用户身份登录,他们会看到菜单点(不是配置,而是实际的菜单点),但是如果我按它,则会出现“访问被拒绝”错误:
我想念什么?