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 #6592

unimplyRight bug

Details

Submitted2006-01-26 12:47 UTC
Fromsimply at evrocom dot net
Assignedlsmith
StatusClosed
PackageLiveUser_Admin
PHP Version5.0.5
OSWindows 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.