mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-05 19:29:06 -04:00
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.
This commit is contained in:
@@ -190,4 +190,18 @@ class IdentityProvider_Core {
|
||||
public function groups() {
|
||||
return $this->driver->groups();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see IdentityProvider_Driver::add_user_to_group.
|
||||
*/
|
||||
public function add_user_to_group($user, $group_id) {
|
||||
return $this->driver->add_user_to_group($user, $group_id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see IdentityProvider_Driver::remove_user_to_group.
|
||||
*/
|
||||
public function remove_user_from_group($user, $group_id) {
|
||||
return $this->driver->remove_user_from_group($user, $group_id);
|
||||
}
|
||||
} // End Identity
|
||||
|
||||
Reference in New Issue
Block a user