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

unimplyRight: no error msg if right_id does not exist in liveuser_rights

Details

Submitted2006-03-07 15:04 UTC
Fromgoethals_d at hotmail dot com
StatusBogus
PackageLiveUser_Admin
PHP Version5.0.4
OSWXP
Roadmaps(Not assigned)

Comments

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

Description:
------------
liveuser_rights does not contain right_id=5.
When using unimplyRight to delete a record with right_id=5, it returns false. When using getErrors, no error message is returned.

[2006-03-11 20:59 UTC] goethals_d at hotmail dot com

In fact you've seen it: when doing unimplyright of right_id=3, the geterrors returns an empty array. I thought there would be a message explaining why the imply right could not be deleted.
I did the following (with right_id 5 not present in liveuser_rights):
$right_id = 5;
$filter = array('right_id' => $right_id);
$deleteImpliedRight = $LUA->perm->unimplyRight($filter, false);
if ($deleteImpliedRight == false) {...

[2006-03-11 21:17 UTC] goethals_d at hotmail dot com

Indeed, with var_dump it returns 0.