From d0937622cf6ac3b93a61fb166c157e2d249e89d4 Mon Sep 17 00:00:00 2001 From: linju-json Date: Tue, 14 Sep 2021 13:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E8=A1=A8op?= =?UTF-8?q?endb-news-articles=E7=9A=84schema=E4=B8=AD=E7=9A=84=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++--- changelog.md | 2 ++ package.json | 2 +- uniCloud-aliyun/database/opendb-news-articles.schema.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 215521d..6589eae 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ uni-starter + uniCloud admin,提供了用户端和管理端的基础模板, - +关于国际化 [详情文档](https://uniapp.dcloud.io/collocation/i18n) ### 功能模块介绍 #### 1. 路由控制 @@ -271,7 +271,7 @@ uni-starter + uniCloud admin,提供了用户端和管理端的基础模板, }) ``` -### 12. 关于升级 +#### 12. 关于升级 - 项目升级 uni-starter遵循uni-app的插件模块化规范,即:[uni_modules](https://uniapp.dcloud.io/uni_modules) 。他是个项目类型的插件。在项目的根目录下有一个符合uni_modules规范的package.json文件,在这个文件右键-从插件市场更新即可更新该插件。 @@ -279,7 +279,6 @@ uni-starter + uniCloud admin,提供了用户端和管理端的基础模板, - 插件升级 非项目类型的uni_modules插件,是项目根目录下的uni_modules目录下。以插件ID为插件文件夹命名,在该目录右键也会看到“从插件市场更新”选项,点击即可更新该插件。 - ### 应用启动时序介绍 文件路径: App.vue ```js diff --git a/changelog.md b/changelog.md index 39b7699..a463e79 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## 1.1.7(2021-09-14) +更新数据表opendb-news-articles的schema中的权限配置 ## 1.1.6(2021-09-13) 纠正错误schema权限表达式`doc.uid`为`doc.user_id` ## 1.1.5(2021-09-01) diff --git a/package.json b/package.json index f325562..e838b46 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "id": "uni-starter", "displayName": "uni-starter", - "version": "1.1.6", + "version": "1.1.7", "description": "云端一体应用快速开发基本项目模版", "keywords": [ "login", diff --git a/uniCloud-aliyun/database/opendb-news-articles.schema.json b/uniCloud-aliyun/database/opendb-news-articles.schema.json index 2b96627..3dd9f01 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": false, + "read": "doc.uid == 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" -- GitLab