Home » Authentication » LiveUser_Admin » Bug #6592
unimplyRight bug
Details
| Submitted | 2006-01-26 12:47 UTC |
|---|---|
| From | simply at evrocom dot net |
| Assigned | lsmith |
| Status | Closed |
| Package | LiveUser_Admin |
| PHP Version | 5.0.5 |
| OS | Windows XP SP2 |
| Roadmaps | (Not assigned) |
Comments
[2006-01-26 12:47 UTC] simply at evrocom dot net
Description:
------------
If i have rights in liveuser_rights table with right_id's - 1,2,3,4. I have implied right id '1' with implied_right_id's '2','3','4'. If i want to unimply right_id '1' with implied_right_id 2 with unimplyRight function it deletes all records with right id '1' in liveuser_right_implied, not just right_id '1' whth implied_right_id '2'.
Test script:
---------------
$this->admin = & LiveUser_Admin::singleton($LiveuserAdmin_Config);
$unimply = $admin->perm->unimplyRight(array('right_id' => 1, 'implied_right_id' => 2));
Expected result:
----------------
It should delete only one row in liveuser_right_implied which contains right_id = '1' and implied_right_id = '2'.
Actual result:
--------------
It actually deletes all records with right_id = 1.