I am trying to implement a customized Acl Assert.
if($acl->isAllowed($role,$resource,$privilege.':all')) {
return true;
}
works fine. But
if(($acl->isAllowed($role,$resource,$privilege.':all'))
|| ($acl->isAllowed($role,$resource,$privilege))) {
return true;
}
throws a
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in ........\library\Zend\Acl.php on line 837
I had a similar problem. I've commented all ACL asserts from my model and
became
which really meant that it was nothing wrong with ACL - I was calling a function from itself in a infinite recursive call.