summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-29 19:16:08 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-29 19:16:08 -0700
commitc6fbd34f28f9d02f38a6c6cacbcd72fa34eee591 (patch)
tree9286b05b17b91755059c5598a9979162701707d9 /modules/gallery/helpers
parent04bf50bfb4241f7c814782c516732d927ff1f457 (diff)
Add the add_user_to_group and remove_user_from_group api method calls. If the identity provider isn't writable, the method implementations should throw an Invalid Operation exception.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/identity.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/gallery/helpers/identity.php b/modules/gallery/helpers/identity.php
index 0111cb1a..72e3312d 100644
--- a/modules/gallery/helpers/identity.php
+++ b/modules/gallery/helpers/identity.php
@@ -227,4 +227,18 @@ class identity_Core {
static function groups() {
return IdentityProvider::instance()->groups();
}
+
+ /**
+ * @see IdentityProvider_Driver::add_user_to_group.
+ */
+ static function add_user_to_group($user, $group_id) {
+ return IdentityProvider::instance()->add_user_to_group($user, $group_id);
+ }
+
+ /**
+ * @see IdentityProvider_Driver::remove_user_to_group.
+ */
+ static function remove_user_from_group($user, $group_id) {
+ return IdentityProvider::instance()->remove_user_from_group($user, $group_id);
+ }
} \ No newline at end of file