[Patch] [LiveUser] auth and perm confusion
| From: | Stephane GULLY | Date: | Wed, 17 Mar 2004 10:14:23 +0000 |
| Subject: | [Patch] [LiveUser] auth and perm confusion | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-26489@lists.php.net to get a copy of this message | ||
Hi,
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 ...
Stephane
joined file : admin_example.diff