mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Can request membership deletion on the server.
This commit is contained in:
@ -173,5 +173,22 @@ ComunicWeb.components.groups.interface = {
|
||||
id: id
|
||||
};
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove (delete) a member from the group
|
||||
*
|
||||
* @param {Number} groupID The ID of the target group
|
||||
* @param {Number} userID The ID of the target user
|
||||
* @param {Function} callback
|
||||
*/
|
||||
deleteMember: function(groupID, userID, callback){
|
||||
//Perform the request over the API
|
||||
var apiURI = "groups/delete_member";
|
||||
var params = {
|
||||
groupID: groupID,
|
||||
userID: userID
|
||||
};
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user