PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Authentication » LiveUser_Admin » Bug #3976

LiveUser_Admin_Perm_Complex _getInheritedRights()

Details

Submitted2005-03-28 09:21 UTC
Fromivanchoo at singnet dot com dot sg
Assigneddufuz
StatusClosed
PackageLiveUser_Admin
PHP Version4.3.10
OSOS X Darwin
Roadmaps(Not assigned)

Comments

[2005-03-28 09:21 UTC] ivanchoo at singnet dot com dot sg

Description:
------------
_getInheritedRights() loops through the user's groups
and make a fresh getRights() call by setting the
$params['filters']['perm_user_id'] to null and setting
the$params['filters']['group_id'] = $row['group_id'];

The "$params['filters']['perm_user_id'] to null" causes
the makeGet() to generate 'perm_user_id' = NULL in the
SQL, which in effect returns no results.

Reproduce code:
---------------
Line 921
// :: BUGFIX unset this filter parameter before going into the loop
unset($params['filters']['perm_user_id']);

foreach ($result as $row) {
// Remove this
// $params['filters']['perm_user_id'] = null;
$params['filters']['group_id'] = $row['group_id'];
..
}