benedmunds/CodeIgniter-Ion-Auth — pull request #245 by sepehr (2012-06-06 18:32:48+00:00)
Title: get_users_groups() always returns the first group document of the collection

There were an issue in the MongoDB model, this pull request should address that:

The function `get_users_groups` always returns the first document in the groups collection, we were not passing the group `_id` !

Plus: MongoDB model duplicates document's object `_id` property into a fake `id` property to keep the API of both models identical to each other. But for better readability we should use `_id` internally.