2016-11-25 13 views
1

私はFirebaseでルールを設定しようとしていますが、uid(abc_x)=== $ account(abc_y)ならデータを読み込み、誰でもデータを挿入して更新できます。私はトランザクションを使用する場合でも、それは報告書「エラー:PERMISSION_DENIED」だからFirebase - トランザクションのルール

"countchat":{ 
    "$account": { 
     ".read": "$account === auth.uid", 
     ".write": "auth != null", 
    } 
    }, 
+0

、[この問題を再現する最小限のコード]を共有します(http://stackoverflow.com/help/mcve)。 –

答えて

2

documentation:@ cartantの答えはあなたの問題が解決しない場合は

When using transactions with Security and Firebase Rules in place, be aware that a client needs .read access in addition to .write access in order to perform a transaction.

関連する問題