收藏
回答

权限管理配置不生效

框架类型 问题类型 终端类型 AppID 环境ID 基础库版本
小程序 Bug 微信iOS客户端 wx36968b6774140c6c mini-sigin-in-8gcnauu236f54d5c 3.3.3

https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/security-rules.html

按照文档中配置权限,保存报错:

"doc.publisher == auth.openid || get(`database.user.${auth.openid}`).isManager"

---
返回
Error: InvalidParameter, rule invalid (0c3e9c71-b964-4b26-a761-1d7e5228815d)
at Object.c [as outputTransformationThrows] (http://127.0.0.1:56447/ideplugin/cloudconsolev1/js/bundle.js:2:10272212)
at outputTransformationThrows (http://127.0.0.1:56447/ideplugin/cloudconsolev1/js/bundle.js:2:388414)
at Object.s (http://127.0.0.1:56447/ideplugin/cloudconsolev1/js/bundle.js:2:422342)
at async t.tcbModifySafeRule (http://127.0.0.1:56447/ideplugin/cloudconsolev1/js/bundle.js:2:10358373)
回答关注问题邀请回答
收藏
登录 后发表内容