有人可以帮助了解如何匹配产品ID吗?

问题描述 投票:0回答:0
service cloud.firestore {
  match /databases/{database}/documents {

    
    match /userA/product/{productId} {
        allow read: if request.auth.uid == productId;
    }
   
  }
  
}

上面的代码不起作用,请帮我解决这个问题。

firebase google-cloud-firestore firebase-security userid
© www.soinside.com 2019 - 2024. All rights reserved.