mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 05:19:21 +00:00
Fix incorrect access control check to delete posts
This commit is contained in:
parent
fbeb66f70e
commit
68055712d9
@ -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?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user