PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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