diff --git a/changelog.md b/changelog.md index 0a944ff3e86cd6edd56ad5c9a6374b005d5e1bb2..f4ac723008fe1197bdbc97dac5a38db654f6b062 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## 2.1.4(2023-07-11) +- 纠正`opendb-news-articles.schema.json`错误的权限表达式`doc.uid`为`doc.user_id` ## 2.1.3(2023-05-10) - 更新 依赖的uni-id-pages的版本为1.1.13 修复 启用摇树优化后切换登陆方式报错的问题 ## 2.1.2(2023-02-10) diff --git a/package.json b/package.json index 6f85f5339059044c0eb015bb7af115cceb6b5202..3a306a198b9e031e997eff7d4e5f99c476ad9409 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "id": "uni-starter", "displayName": "uni-starter", - "version": "2.1.3", + "version": "2.1.4", "description": "云端一体应用快速开发基本项目模版", "keywords": [ "login", diff --git a/uniCloud-aliyun/database/opendb-news-articles.schema.json b/uniCloud-aliyun/database/opendb-news-articles.schema.json index 3dd9f01986112bc95844e086214dad724d562ec4..6e70862a40f7e5381b83a208db6dc5bdb8be260b 100644 --- a/uniCloud-aliyun/database/opendb-news-articles.schema.json +++ b/uniCloud-aliyun/database/opendb-news-articles.schema.json @@ -2,7 +2,7 @@ "bsonType": "object", "required": ["user_id", "title", "content"], "permission": { - "read": "doc.uid == auth.uid && doc.article_status == 0 || doc.article_status == 1", + "read": "doc.user_id == auth.uid && doc.article_status == 0 || doc.article_status == 1", "create": "auth.uid != null", "update": "doc.user_id == auth.uid", "delete": "doc.user_id == auth.uid"