#1325: RbacSecurityUser doesn't handle users without roles properly
---------------------+------------------------------------------------------
Reporter: dominik | Owner: david
Type: defect | Status: new
Priority: normal | Milestone: 1.0.4
Component: user | Version: HEAD
Severity: major | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------
if no roles are ever granted the data in the roles namspace is null which
breaks all in_array checks in the class
we should just use an (array) cast in the assignment to make sure
$this->roles is always an array
{{{
# AgaviRbacSecurityUser.class.php:168
$this->roles =
$this->context->getStorage()->read(self::ROLES_NAMESPACE);
}}}
--
Ticket URL: <http://trac.agavi.org/ticket/1325>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets