schema.json 表结构:
{
"bsonType": "object",
"required": [],
"permission": {
"read": "doc.user_id == auth.uid",
"create": "auth.uid != null",
"update": "doc.user_id == auth.uid",
"delete": "doc.user_id == auth.uid"
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"status": {
"bsonType": "string",
"defaultValue": "0",
"description": "任务状态。0排队中,1执行中,2已完成"
}
}
}
前端通过unicloud-db组件请求列表数据,在where条件中设置status==0,就会报“权限校验未通过”的错误:
但是只要把条件改为status==1或status==2,就恢复正常了!请问这是怎么回事?
========================================
问题补充:where条件设置:status==1||status==2、status!=1等,都会报同样的错误!我裂开了。