Firebase security, only auth/admin can delete?

I must be missing something obvious?
How do I setup firebase security rules so:

  • any user can ONLY read and create new data
  • admin/auth can ALSO delete the data
  • I can't see anywhere in the documentation the ability to have multiple ".write" rules for the same directory...

        {
         "rules": {
            ".read": true,
    
            // this only occurs if "auth === null" otherwise should be full access.
            ".write": "!data.exists() && newData.exists()"
          }
        }
    
    链接地址: http://www.djcxy.com/p/84212.html

    上一篇: 在博尔特进行更新验证

    下一篇: Firebase安全性,只有auth / admin可以删除?