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

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

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