Re: Liveuser- updating perm_user table

From: Date: Wed, 31 Aug 2005 13:11:42 +0000
Subject: Re: Liveuser- updating perm_user table
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20691@lists.php.net to get a copy of this message
Jeroen Houben wrote:
I'm wondering what the parameters of LiveUser_Admin_Perm_Simple::updateUser() should look like. I want to "upgrade" a user to become a masteradmin. $user_to_add = array();
$user_to_add['perm_type']             = LIVEUSER_MASTERADMIN_TYPE_ID;
$filter = array('auth_user_id' => 'jeroen@terena.nl'); $res = $lu_admin->perm->updateUser($user_to_add, $filter); This seems to work, but it does throw notices - is this the right way of doing things? I tried looking in the examples but could only find an example that updates the "users" table, not the "perm_users" table
There is a bug in the current releases version in the sanity checking. Its fixed in CVS and I will soon make a new release. regards, Lukas

« previous php.pear.general (#20691) next »