mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Delete groups membership when deleting an account
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user