我想知道为什么内容一次只显示给一个用户。
例如:如果personA@gmail.com
已登录,则会在浏览器上上传文件,目的是让其他用户能够看到该文件,然后personA@gmail.com
出于任何原因决定注销。 现在,personB@gmail.com
登录。 您如何在登录时看到personB@gmail.com
上传的内容(文件)personA@gmail.com
?
不太确定要搜索什么,因此为什么我在这里问这个。
安全文件如下:
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if true;
}
}
}
为了调整规则的安全性,在这种情况下,您将需要这样做。要将文件锁定为仅经过身份验证的用户,请使用以下命令:
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth!=null;
}
}
}
这里也有一些很棒的文档 存储安全文档