PEAR is archived and read-only

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

Home » Authentication » LiveUser » Bug #433

Right levels

Details

Submitted2003-12-15 22:44 UTC
Fromkipaten21 at hotmail dot com
Assignedlsmith
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSANY
Roadmaps(Not assigned)

Comments

[2003-12-15 22:44 UTC] kipaten21 at hotmail dot com

Description:
------------
In methods

LiveUser_Admin_Perm_DB_Common::grantUserRight()
LiveUser_Admin_Perm_Container_DB_Medium::grantGroupRight()

code needs to be added to prevent a right from being granted if it already is granted.

[2003-12-15 22:45 UTC] kipaten21 at hotmail dot com

Also, code needs to be added to update the 'has_level' field in LIVEUSER_RIGHTS when $right_level is set.

[2003-12-15 22:51 UTC] kipaten21 at hotmail dot com

Also the methods

LiveUser_Admin_Perm_Container_DB_Complex::grantGroupRight() LiveUser_Admin_Perm_Container_DB_Complex::grantUserRight()

should be created, derived from

LiveUser_Admin_Perm_DB_Common::grantUserRight()
LiveUser_Admin_Perm_Container_DB_Medium::grantGroupRight()

since levels are only available to the Complex model. Then the methods

LiveUser_Admin_Perm_DB_Common::grantUserRight()
LiveUser_Admin_Perm_Container_DB_Medium::grantGroupRight()

should be modified to not accept a right level.