PEAR is archived and read-only

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

Home » Authentication » LiveUser » Bug #419

Foreign Key constraint violation

Details

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

Comments

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

Description:
------------
In the method LiveUser_Admin_Perm_DB_Common::removeArea(), the rights and areaadmins should be removed before the actual area is deleted to avoid a foreign key constraint violation.

Also in LiveUser_Admin_Perm_DB_Common::removeRight(), the userrights and grouprights should be removed before moving the actual right for the same reason.

Any other method that removes items should probably follow the same rule, delete all children before deleting the parent.

P.S. Don't forget about the other Admin classes also.