PEAR is archived and read-only

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

Home » Authentication » LiveUser » Bug #420

Prevent addUserToGroup from adding duplicates

Details

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

Comments

[2003-12-12 23:57 UTC] kipaten21 at hotmail dot com

Description:
------------
Code needs to be added to LiveUser_Admin_Perm_Container_DB_Complex::addUserToGroup() to make sure it doesn't add a user->group mapping if it already exists.

This can also be done by creating a unique constraint on (perm_user_id, group_id) in LIVEUSER_GROUPUSERS.