mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Delete a group need user password as confirmation.
This commit is contained in:
		@@ -715,6 +715,10 @@ class GroupsController {
 | 
			
		||||
 | 
			
		||||
		user_login_required();
 | 
			
		||||
 | 
			
		||||
		//Check user password
 | 
			
		||||
		if(!check_post_password(userID, "password"))
 | 
			
		||||
			Rest_fatal_error(401, "Password required!");
 | 
			
		||||
 | 
			
		||||
		//Get the group
 | 
			
		||||
		$groupID = getPostGroupIdWithAccess("groupID", GroupInfo::ADMIN_ACCESS);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user