mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 08:35:18 +00:00
Removed duplicate
This commit is contained in:
@ -299,7 +299,7 @@ class GroupsController {
|
||||
Rest_fatal_error(401, "You did not send a membership request to this group!");
|
||||
|
||||
//Try to cancel membership request
|
||||
if(!components()->groups->cancelRequest(userID, $groupID))
|
||||
if(!components()->groups->deleteRequest(userID, $groupID))
|
||||
Rest_fatal_error(500, "An error occurred while trying to cancel membership request!");
|
||||
|
||||
return array("success" => "The request has been successfully cancelled!");
|
||||
|
Reference in New Issue
Block a user