PEAR is archived and read-only

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

Home » Authentication » LiveUser » Bug #384

Implied rights mapping not deleted when right deleted

Details

Submitted2003-12-09 00:00 UTC
Fromkipaten21 at hotmail dot com
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSANY
Roadmaps(Not assigned)

Comments

[2003-12-09 00:00 UTC] kipaten21 at hotmail dot com

Description:
------------
There is no code to remove implied right mappings from LIVEUSER_RIGHT_IMPLIED when an associated right is removed.

Since implied rights are only available in DB_Complex, I suggest that a new method be created, LiveUser_Admin_Perm_Container_DB_Complex::removeRight(), which should be derived from LiveUser_Admin_Perm_DB_Common::removeRight(). This derived method would clear the implied right mappings when a right is removed.

[2003-12-11 17:41 UTC] kipaten21 at hotmail dot com

Solution looks good. Noticed a typo in the method header though. No big deal, but thought I point it out anyways.

* Override metjod to delete implied rights mapping.

type in metjod