【发布时间】:2021-01-22 07:23:23
【问题描述】:
如果用户已验证==1(0==等待批准和 2==被阻止),我希望 Firebase 安全规则允许。
我尝试使用
get(/UserAgentSecretInformation/$(request.auth.uid)).data.verified == 1
但不适合我。
【问题讨论】:
标签: firebase google-cloud-firestore firebase-security
如果用户已验证==1(0==等待批准和 2==被阻止),我希望 Firebase 安全规则允许。
我尝试使用
get(/UserAgentSecretInformation/$(request.auth.uid)).data.verified == 1
但不适合我。
【问题讨论】:
标签: firebase google-cloud-firestore firebase-security
我已经修改了你的代码,使用下面的代码行:
get(/databases/$(database)/documents/UserAgentSecretInformation/$(request.auth.uid)).data.verified == 1;
【讨论】: