Firebase Firestore 规则 resource.data 不工作
Firebase Firestore rules resource.data not working
谁能解释一下为什么这条规则
match /invoices/{id} {
allow read, update, delete: if request.auth.uid == resource.data.uid;
}
什么都不给我,但是当这个:
match /invoices/{id} {
allow read, update, delete: if request.auth.uid == 'gkaT45c7gYXCqQpw5al6Fbh9fgC3';
}
正在工作
通过更改查询解决了问题并创建了依赖于新查询变量的索引
谁能解释一下为什么这条规则
match /invoices/{id} {
allow read, update, delete: if request.auth.uid == resource.data.uid;
}
什么都不给我,但是当这个:
match /invoices/{id} {
allow read, update, delete: if request.auth.uid == 'gkaT45c7gYXCqQpw5al6Fbh9fgC3';
}
正在工作
通过更改查询解决了问题并创建了依赖于新查询变量的索引