Thursday 09 November 2006 4:04:44 am
Hi Pavel the admin that was created during install has always user id 14, so you could check for that. If you want to check whether a user is in the administrator group just retrieve the 'groups' attribute of the ezuser object and check whether the admin group is in this array. If you want to check whether a user has an admin role assigned you could retrieve the 'role_id_list' attribute of the ezuser object and then check whether the ids of whatever admin roles you have are in this array. Greetings from Luxembourg Claudia
|