Home » Authentication » LiveUser_Admin » Bug #3976
LiveUser_Admin_Perm_Complex _getInheritedRights()
Details
| Submitted | 2005-03-28 09:21 UTC |
|---|---|
| From | ivanchoo at singnet dot com dot sg |
| Assigned | dufuz |
| Status | Closed |
| Package | LiveUser_Admin |
| PHP Version | 4.3.10 |
| OS | OS 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'];
..
}