提交 48df2f9c 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新数据表guestbook的schema中更新权限的配置

上级 7ee4a811
## 1.1.8(2021-09-15)
更新数据表guestbook的schema中更新权限的配置
## 1.1.7(2021-09-14) ## 1.1.7(2021-09-14)
更新数据表opendb-news-articles的schema中的权限配置 更新数据表opendb-news-articles的schema中的权限配置
## 1.1.6(2021-09-13) ## 1.1.6(2021-09-13)
......
{ {
"id": "uni-starter", "id": "uni-starter",
"displayName": "uni-starter", "displayName": "uni-starter",
"version": "1.1.7", "version": "1.1.8",
"description": "云端一体应用快速开发基本项目模版", "description": "云端一体应用快速开发基本项目模版",
"keywords": [ "keywords": [
"login", "login",
......
...@@ -5,40 +5,52 @@ ...@@ -5,40 +5,52 @@
"permission": { "permission": {
"read": "doc.state || auth.uid == doc.user_id || 'AUDITOR' in auth.role", "read": "doc.state || auth.uid == doc.user_id || 'AUDITOR' in auth.role",
"create": "auth.uid != null", "create": "auth.uid != null",
"update": true, "update": "'AUDITOR' in auth.role",
"delete": "auth.uid == doc.user_id" "delete": "auth.uid == doc.user_id"
}, },
"properties": { "properties": {
"_id": { "_id": {
"description": "ID,系统自动生成" "description": "ID,系统自动生成",
"permission":{
"write":false
}
}, },
"text": { "text": {
"bsonType": "string", "bsonType": "string",
"permission":{ "permission":{
"update":"'AUDITOR' in auth.role" "write":false
} }
}, },
"user_id": { "user_id": {
"forceDefaultValue": { "forceDefaultValue": {
"$env": "uid" "$env": "uid"
}, },
"foreignKey": "uni-id-users._id" "foreignKey": "uni-id-users._id",
"permission":{
"write":false
}
}, },
"ip": { "ip": {
"forceDefaultValue": { "forceDefaultValue": {
"$env": "clientIP" "$env": "clientIP"
},
"permission":{
"write":false
} }
}, },
"create_time": { "create_time": {
"forceDefaultValue": { "forceDefaultValue": {
"$env": "now" "$env": "now"
},
"permission":{
"write":false
} }
}, },
"state": { "state": {
"bsonType": "bool", "bsonType": "bool",
"forceDefaultValue":false, "forceDefaultValue":false,
"permission":{ "permission":{
"write":"'AUDITOR' in auth.role" "write":true
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册