Welcome Guest, Not a member yet? Register   Sign In
ion_auth - view users of a certain group only
#2

[eluser]jellysandwich[/eluser]
It's built into the users() function.

Code:
public function users($groups = NULL)

If you look at the function, you'll see that $groups is supposed to be an int or array of ints.

Code:
//filter by group id(s) if passed
        if (isset($groups))
        {
         //build an array if only one group was passed
         if (is_numeric($groups))
         {
          $groups = Array($groups);
}


Messages In This Thread
ion_auth - view users of a certain group only - by El Forum - 05-04-2012, 03:22 PM
ion_auth - view users of a certain group only - by El Forum - 05-05-2012, 06:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB