mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 22:41:15 +08:00
add permission config
This commit is contained in:
parent
a56aa519d7
commit
46a8323499
@ -2,8 +2,8 @@
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"required": ["goods_sn", "name", "remain_count", "month_sell_count", "total_sell_count", "comment_count", "is_real", "is_on_sale", "is_alone_sale", "is_best", "is_new", "is_hot"],
|
||||
"permission": {
|
||||
".read": true,
|
||||
"permission": {
|
||||
".read": "doc.is_on_sale == true",
|
||||
".create": false,
|
||||
".update": false,
|
||||
".delete": false
|
||||
@ -106,7 +106,10 @@
|
||||
},
|
||||
"seller_note": {
|
||||
"bsonType": "string",
|
||||
"description": "商家备注,仅商家可见"
|
||||
"description": "商家备注,仅商家可见",
|
||||
"permission": {
|
||||
".read": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user