PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser_Admin » Bug #7050

unimplyRight: 2nd parameter does not work

Details

Submitted2006-03-07 14:07 UTC
Fromgoethals_d at hotmail dot com
Assignedlsmith
StatusClosed
PackageLiveUser_Admin
PHP Version5.0.4
OSWXP
Roadmaps(Not assigned)

Comments

[2006-03-07 14:07 UTC] goethals_d at hotmail dot com

Description:
------------
liveuser_rights contains 1 record with right_id=5 and has_implied=1.
liveuser_implied_right contains 1 record with right_id=5 and implied_right_id=1.
When deleting implied rights for right_id=5, the value of has_implied remains, whether the 2nd parameter of unimplyRight is set to true or to false

Test script:
---------------
$filter = array('right_id' => 5);
$deleteImpliedRight = $LUA->perm->unimplyRight($filter, true);

Expected result:
----------------
If 2nd parameter = true, has_implied should be set to 0.

Actual result:
--------------
has_implied=1