1
{ 
"rules": { 
    "Users": { 
     "$user_id": { 
      // grants write access to the owner of this user account 
      // whose uid must exactly match the key ($user_id) 
      ".write": "$user_id === auth.uid" 
     } 
    } 
    "$businessName": { 
     ".write": "root.child('Users').child(auth.uid).child($businessName).child('Permission s').val() === 'MODERATOR'" 
    } 
} 
} 

這給了我一個錯誤:保存規則錯誤 - 第10行:期望','或'}'。該錯誤說,由於某種原因,我錯過了一個括號,我錯過了一個逗號或什麼?Firebase數據庫規則的語法錯誤

+3

逗號'' 「$ BUSINESSNAME」'之前。 –

回答

1

由於@Frank麪包車Puffelen說我只是缺少你錯過了',前 「$ BUSINESSNAME」