【发布时间】:2019-02-08 19:47:08
【问题描述】:
错误:
'配置文件侦听器出错:缺少权限或权限不足。错误:缺少权限或权限不足。'
我的应用是使用 Reactjs、Redux、Firebase 构建的项目管理器。 您能告诉我为什么在用户注销时出现此错误以及如何解决?
我的规则:
service cloud.firestore {
match /databases/{database}/documents {
// Match any {project} document in the 'projects' collection
match /projects/{project} {
// Allow signed in users to read write projects
allow read, write: if request.auth.uid != null;
}
// Match any {user} document in the 'users' collection
match /users/{user} {
// Allow users to signup and create an account
allow create;
// Allow signed in users to read project details - who create project and when)
allow read: if request.auth.uid != null;
// Allow signed in user to update his info only if signed in id == user document id
allow update, delete: if request.auth.uid == user;
}
}
}
【问题讨论】:
-
您的规则(代码 sn-p 的第 6 行)指定只有经过身份验证的用户才能读取或写入数据
-
能贴出注销的代码示例吗?客户端是用什么语言编写的?您能否发布错误堆栈跟踪以确保问题是注销而不是其他问题?
-
我添加了我的应用程序使用 Reactjs、Redux、Firebase 构建。我是新手,所以我无法理解错误堆栈跟踪是什么意思?
标签: firebase google-cloud-firestore logout firebase-security