mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-10-30 15:14:42 +00:00 
			
		
		
		
	Fix incorrect access control check to delete posts
This commit is contained in:
		| @@ -270,7 +270,7 @@ pub async fn update_content(r: &mut HttpRequestHandler) -> RequestResult { | |||||||
|  |  | ||||||
| /// Delete a post | /// Delete a post | ||||||
| pub async fn delete(r: &mut HttpRequestHandler) -> RequestResult { | pub async fn delete(r: &mut HttpRequestHandler) -> RequestResult { | ||||||
|     let post = r.post_post_with_access("postID", PostAccessLevel::FULL_ACCESS)?; |     let post = r.post_post_with_access("postID", PostAccessLevel::INTERMEDIATE_ACCESS)?; | ||||||
|  |  | ||||||
|     posts_helper::delete(&post).await?; |     posts_helper::delete(&post).await?; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user