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