diff --git a/uniCloud-aliyun/database/opendb-news-comments.schema.json b/uniCloud-aliyun/database/opendb-news-comments.schema.json index c4aa84ebd255ca1c6da48dd7bbfbfdb6d17d5730..8587989d4564f149b5289d68c0d894406a8a09d3 100644 --- a/uniCloud-aliyun/database/opendb-news-comments.schema.json +++ b/uniCloud-aliyun/database/opendb-news-comments.schema.json @@ -5,7 +5,7 @@ ], "permission": { "read": true, - "create": "auth.uid != null && get(`database.opendb-news-article.${doc.article_id}`).comment_status == 1", + "create": "auth.uid != null && get(`database.opendb-news-articles.${doc.article_id}`).comment_status == 1", "update": "doc.user_id == auth.uid", "delete": "doc.user_id == auth.uid" },