Re: Selecting all users with a specific right?

Lukas Kahwe Smith <[email protected]> Sun, 21 Aug 2005 23:31:14 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Jan Bolmeson wrote:

> Just a quick question - how do I with the admin get a selection of all users
> with a specific right, searching on right id?

you can either use the getRight() or getUsers() method. I would suggest 
using the getUsers() method as that is much cleaner, since you are 
looking for data about users.

$LUadmin->perm->getUsers(array('filters' => array('right_id' => 
$right_id)));

regards,
Lukas