Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #6592 unimplyRight bug
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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 22 + 13 = ?

 
 [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.

Comments

 [2006-02-03 14:17 UTC] lsmith
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.