mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 06:21:14 +08:00
update uni-cms-articles
This commit is contained in:
parent
933a15f1b3
commit
87f713598c
@ -4,9 +4,9 @@
|
||||
"required": ["user_id", "title", "content"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": "auth.uid != null",
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
"create": "'admin' in auth.role || 'CREATE_UNI_CMS_ARTICLE' in auth.permission",
|
||||
"update": "'admin' in auth.role || 'UPDATE_UNI_CMS_ARTICLE' in auth.permission",
|
||||
"delete": "'admin' in auth.role || 'DELETE_UNI_CMS_ARTICLE' in auth.permission"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
@ -69,6 +69,7 @@
|
||||
"bsonType": "int",
|
||||
"title": "阅读数量",
|
||||
"description": "阅读数量",
|
||||
"defaultValue": 0,
|
||||
"permission": {
|
||||
"write": false
|
||||
}
|
||||
|
@ -3,9 +3,9 @@
|
||||
"required": ["user_id", "title", "content"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": "auth.uid != null",
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
"create": "'admin' in auth.role || 'CREATE_UNI_CMS_ARTICLE' in auth.permission",
|
||||
"update": "'admin' in auth.role || 'UPDATE_UNI_CMS_ARTICLE' in auth.permission",
|
||||
"delete": "'admin' in auth.role || 'DELETE_UNI_CMS_ARTICLE' in auth.permission"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
@ -68,6 +68,7 @@
|
||||
"bsonType": "int",
|
||||
"title": "阅读数量",
|
||||
"description": "阅读数量",
|
||||
"defaultValue": 0,
|
||||
"permission": {
|
||||
"write": false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user