Home » Authentication » LiveUser_Admin » Bug #7051
unimplyRight: no error msg if right_id does not exist in liveuser_rights
Details
| Submitted | 2006-03-07 15:04 UTC |
|---|---|
| From | goethals_d at hotmail dot com |
| Status | Bogus |
| Package | LiveUser_Admin |
| PHP Version | 5.0.4 |
| OS | WXP |
| 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.