我在FireStore中有这些规则
允许对除一个条件以外的所有数据库进行读写
如果此 / UserPoints / {area} / {competetion} / {userId} 中的点数小于新点数
但它始终是真的吗?????
有人可以帮我吗
service cloud.firestore {
match /databases/{database}/documents {
match /UserPoints/{area}/{competetion}/{userId}{
allow read;
allow write : if resource.data.points < request.resource.data.points;
match /{document=**} {
allow read, write;
}
}
}
}