为什么设置提示错误?哪里设置不对吗
{
"read": true,
"create": "doc._openid== auth.openid",
"update": "doc._openid== auth.openid || get('database.user.${auth.openid}').isManager",
"delete": "doc._openid== auth.openid || get('database.user.${auth.openid}').isManager"
}
user表
get(`database.user.${auth.openid}`).isManager的后边加上 = = true 就好了
大神,请问为什么直接对比常量,也报一样的错误?
{
"read": true,
"write": "(resource.openid == auth.openid) || (auth.openid == 'QbBeVP-GY')"
}
大神两个表怎么关联
你写错啦,要这么写,注意标点符号背后不同的含义
{ "read": true, "create": "doc._openid== auth.openid", "update": "doc._openid== auth.openid || get(`database.user.${auth.openid}`).isManager", "delete": "doc._openid== auth.openid || get(`database.user.${auth.openid}`).isManager" }