fix: incorrect perms when deleting objects

This commit is contained in:
Huskydog9988
2025-04-11 19:32:30 -04:00
parent dc89ff95d8
commit 228d109692
5 changed files with 39 additions and 12 deletions

View File

@ -129,7 +129,7 @@ class NewsManager {
where: { id },
});
if (article.image) {
return await objectHandler.deleteWithPermission(article.image);
return await objectHandler.deleteAsServer(article.image);
}
return true;
}