summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-20 17:01:19 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-20 17:01:19 -0700
commit3ece1a01f25270939b3c12f754d555d6ac54d375 (patch)
tree2e802e5430b42ea1d5f64d13e5503f1a06d6bfcd /modules/user
parent7f9441c33da07b215efcb51668434b3957559fd3 (diff)
Add a groups api method on the Identity provider and change access_Core::_get_all_groups() to use this to get the defined groups.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/libraries/drivers/Identity/Gallery.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/user/libraries/drivers/Identity/Gallery.php b/modules/user/libraries/drivers/Identity/Gallery.php
index f4b4d8a7..8e6e204d 100644
--- a/modules/user/libraries/drivers/Identity/Gallery.php
+++ b/modules/user/libraries/drivers/Identity/Gallery.php
@@ -131,5 +131,13 @@ class Identity_Gallery_Driver implements Identity_Driver {
->find_all()
->as_array();
}
+
+ /**
+ * @see Identity_Driver::groups.
+ */
+ static function groups() {
+ return ORM::factory("group")->find_all();
+ }
+
} // End Identity Gallery Driver