Issues

ZF-12267: Zend_Acl "Notice: Undefined index: allPrivileges in ...\library\Zend\Acl.php on line 761"

Description

When call: $acl->removeAllow(); Results: Notice: Undefined index: allPrivileges in Y:\Programa!EXE\xampp\htdocs\aplicativo\GasTurbines\library\Zend\Acl.php on line 764

Look for example code:


$acl = new Zend_Acl();
$acl->addResource('padrao');
$acl->addRole('usuario');
$acl->allow('usuario', 'padrao', 'acessar');
echo $acl->isAllowed('usuario', 'padrao', 'acessar') . "\n
"; $acl->removeAllow(); //Error here. echo $acl->isAllowed('usuario', 'padrao', 'acessar') . "\n
";

Comments

I want clear all Allow and Deny. I do this:


$acl->removeAll(); $acl->addResource(self::RESOURCE_NAVEGACAO); $acl->addResource(self::RESOURCE_TECNICO);


Now, low priority. But, the function have a realy bug, because de notice show?