Liveuser- updating perm_user table

From: Date: Wed, 31 Aug 2005 13:06:14 +0000
Subject: Liveuser- updating perm_user table
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20689@lists.php.net to get a copy of this message
Hi, 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 Jeroen

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