PEAR is archived and read-only

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

Home » Authentication » LiveUser » Bug #1030

admin_exemple bug

Details

Submitted2004-03-17 10:24 UTC
Fromstephane dot gully at libertysurf dot fr
Assigneddufuz
StatusClosed
PackageLiveUser
PHP Version4.3.3
OSlinux
Roadmaps(Not assigned)

Comments

[2004-03-17 10:24 UTC] stephane dot gully at libertysurf dot fr

Description:
------------
Here a little patch to correct a bug :

when a perm-user has been created with :
$user_perm_id = $objRightsAdminPerm->addUser($user_auth_id);

and you want to grant user right with :
$objRightsAdminPerm->grantUserRight($user_perm_id, $right_1);

it's important to specify $user_perm_id and not $user_auth_id because this doesn match with DB structure ...

the patch : http://kerphi.dyndns.org/patch/admin_example.diff