Firestore公共读取,任何已登录的写入

时间:2019-05-31 18:53:30

标签: firebase-security-rules

我很确定这是可以的,但是大警告困扰着我,所以请确认:

service cloud.firestore {
  match /databases/{database}/documents {
    match /parts/{part} {
      allow read: if true
      allow write: if request.auth.uid != null
    }
  }
}

因此,这是一个具有1-2个登录名的简单应用。这些登录名应该能够执行所需的任何写操作-更新目录中的某些零件数据-无需“创作”等。

否则,任何人都应该能够查看目录。

0 个答案:

没有答案