0

I have Anonymous enabled. My current Rules lets users who are authenticated read from certain refs. How can I add a rule that prevents Anonymous users from reading from certain refs considering their auth.uid isn't nil

enter image description here

Rules:

"users": { // anonymous users shouldn't be able to read/write to the ref
    ".read": "auth.uid != null",
    ".write": "auth.uid != null"
}

Node Example:

"users" // all of these users aren't anonymous
    -uid123
    -uid456
    -uid789
Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Lance Samaria
  • 17,576
  • 18
  • 108
  • 256

0 Answers0