用于为特定用户创建规则的Firebase数据库问题

时间:2019-02-26 07:30:20

标签: swift xcode firebase firebase-realtime-database firebase-authentication

我创建了一个特殊标志“已验证”,以仅允许访问权限来访问用户。 那是我的数据库 orders

users 所以我发现了类似的问题,但是给定的解决方案对我来说永远无效

".write": root.child('users').child(auth.uid).child('roles').child('verified').val() === true

/users/JKeMMWEvpZfW8I77j02lEJ3ZocJ2 failed: permission_denied上的监听器 我认为,这是因为我无法为每个用户预测特殊ID 但是我不知道该如何解决。

0 个答案:

没有答案
相关问题