1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Fix incorrect access control check to delete posts

This commit is contained in:
Pierre HUBERT 2022-03-17 18:08:03 +01:00
parent fbeb66f70e
commit 68055712d9

View File

@ -270,7 +270,7 @@ pub async fn update_content(r: &mut HttpRequestHandler) -> RequestResult {
/// Delete a post
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?;