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 + 1 = ?

 
 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!