Skip to content

Instantly share code, notes, and snippets.

@benedmunds
Created April 18, 2012 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benedmunds/2415063 to your computer and use it in GitHub Desktop.
Save benedmunds/2415063 to your computer and use it in GitHub Desktop.
Ion Auth - get users groups
$this->data['users'] = $this->ion_auth->users()->result();
foreach ($this->data['users'] as $k => $user)
{
$this->data['users'][$k]->groups = $this->ion_auth->get_users_groups($user->id)->result();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment