mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-20 16:39:54 -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:
@@ -113,6 +113,19 @@ interface IdentityProvider_Driver {
|
||||
*/
|
||||
public function groups();
|
||||
|
||||
/**
|
||||
* Add the user to the specified group
|
||||
* @param User_Definition the user to add to the group
|
||||
* @param int the group_id
|
||||
*/
|
||||
static function add_user_to_group($user, $group_id);
|
||||
|
||||
/**
|
||||
* Remove the user to the specified group
|
||||
* @param User_Definition the user to add to the group
|
||||
* @param int the group id
|
||||
*/
|
||||
static function remove_user_from_group($user, $group_id);
|
||||
} // End Identity Driver Definition
|
||||
|
||||
interface Group_Definition {}
|
||||
|
||||
Reference in New Issue
Block a user