diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-20 17:21:33 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-20 17:21:33 -0700 |
| commit | b28c758d4a98c9e877fb81f7b88f9c8597de74b6 (patch) | |
| tree | f3d4257d739a3b23f0168b5618dab2586491b697 /modules/gallery/libraries | |
| parent | 3ece1a01f25270939b3c12f754d555d6ac54d375 (diff) | |
Add lookup_group Identity provider API and change the permissions controller to use it to get the group it is modifying
Diffstat (limited to 'modules/gallery/libraries')
| -rw-r--r-- | modules/gallery/libraries/Identity.php | 7 | ||||
| -rw-r--r-- | modules/gallery/libraries/drivers/Identity.php | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Identity.php b/modules/gallery/libraries/Identity.php index 3ef13a6d..1dd5d23b 100644 --- a/modules/gallery/libraries/Identity.php +++ b/modules/gallery/libraries/Identity.php @@ -193,6 +193,13 @@ class Identity_Core { } /** + * @see Identity_Driver::lookup_group. + */ + static function lookup_group($id) { + return self::instance()->driver->lookup_group($id); + } + + /** * @see Identity_Driver::lookup_group_by_name. */ static function lookup_group_by_name($name) { diff --git a/modules/gallery/libraries/drivers/Identity.php b/modules/gallery/libraries/drivers/Identity.php index b77eb6be..5b35d49b 100644 --- a/modules/gallery/libraries/drivers/Identity.php +++ b/modules/gallery/libraries/drivers/Identity.php @@ -98,6 +98,13 @@ interface Identity_Driver { public function get_user_list($ids); /** + * Look up a group by id. + * @param integer id + * @return Group_Definition the user object, or null if the name was invalid. + */ + static function lookup_group($id); + + /** * List the groups defined in the Identity Provider */ static function groups(); |
