Compare commits
2 Commits
8e672633dc
...
5a8a7d9f66
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a8a7d9f66 | |||
| 126e9332ad |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "harmony-back",
|
"name": "harmony-back",
|
||||||
"version": "0.13.14",
|
"version": "0.13.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A Strapi application",
|
"description": "A Strapi application",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
"public",
|
"public",
|
||||||
"contacts",
|
"contacts",
|
||||||
"private"
|
"private"
|
||||||
]
|
],
|
||||||
|
"default": "public"
|
||||||
},
|
},
|
||||||
"allowMessage": {
|
"allowMessage": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
|||||||
@@ -84,6 +84,12 @@ const ROLE_PERMISSIONS: Record<string, string[]> = {
|
|||||||
"api::post.post.addComment",
|
"api::post.post.addComment",
|
||||||
"api::post.post.link",
|
"api::post.post.link",
|
||||||
"api::post-ownership.post-ownership.find",
|
"api::post-ownership.post-ownership.find",
|
||||||
|
// Lecture seule : sans `find`, le sanitizer de l'API REST retire les
|
||||||
|
// commentaires des réponses où ils sont peuplés (page de détail d'une
|
||||||
|
// publication). L'écriture reste passée par `post.addComment`, qui
|
||||||
|
// contrôle l'auteur — pas de create/update/delete ici.
|
||||||
|
"api::comment.comment.find",
|
||||||
|
"api::comment.comment.findOne",
|
||||||
"api::report.report.create",
|
"api::report.report.create",
|
||||||
|
|
||||||
// --- Contacts / amis
|
// --- Contacts / amis
|
||||||
|
|||||||
Reference in New Issue
Block a user