Delete groups membership when deleting an account

This commit is contained in:
2019-04-26 23:49:23 +02:00
parent fe702519b1
commit 9dfc400fe2
2 changed files with 49 additions and 1 deletions

View File

@ -409,8 +409,12 @@ class AccountComponent {
*/
public function delete(int $userID) : bool {
/*//Delete all group memberships
if(!components()->groups->deleteAllUsersGroups($userID))
return FALSE;
//Delete user comments
/*if(!components()->comments->deleteAllUser($userID))
if(!components()->comments->deleteAllUser($userID))
return false;
//Delete user posts