I have defined an acl for a tab in Manage Customer
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<customer>
<children>
<manage>
<children>
<managepoint translate="title">
<title>Manage Point</title>
<sort_order>100</sort_order>
</managepoint>
</children>
</manage>
</children>
</customer>
</children>
</admin>
</resources>
</acl>
Using this code
public function canShowTab(){
if(!Mage::getSingleton('admin/session')->isAllowed('customer/manage/managepoint'))
return false;
return true;
}
It is expacted that by default for all users under any user role except admin role Mage::getSingleton('admin/session')->isAllowed('customer/manage/managepoint') should return FALSE but actually it returns TRUE, but if I check then uncheck this ACL for a perticular Role then ACL starts working as expected.
Can anybody tell me why Mage::getSingleton('admin/session')->isAllowed('customer/manage/managepoint') is returning FALSE by default.