diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index eeb76d37..3df1a25c 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -145,6 +145,7 @@ final class PostController extends AbstractController public function deletePost($postNameOrId) { + $this->privilegeService->assertPrivilege(Privilege::DELETE_POSTS); $post = $this->postService->getByNameOrId($postNameOrId); $this->postService->deletePost($post); }