Zend Framework

Zend_Acl::removeAllow show a notice when passing null to privileges parameter

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.1, 1.9.3
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Acl
  • Labels:
    None

Description

While using Zend_Acl, I encountered a problem that can be reproduce with this simple code :

$acl = new Zend_Acl();
$acl->addRole('admin');
$acl->addResource('blog');
$acl->allow('admin', 'blog', 'read');
$acl->removeAllow(array('admin'), array('blog'), null);

It results with this :

Notice:  Undefined index:  allPrivileges in lib/Zend/Acl.php on line 682

The documentation (http://framework.zend.com/manual/en/zend.acl.refining.html#zend.acl.refining.removing) indicate that it should remove allow rights to every privileges in the ACL.

Activity

Hide
Dolf Schimmel (Freeaqingme) added a comment -

Fixed in trunk

Show
Dolf Schimmel (Freeaqingme) added a comment - Fixed in trunk

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: