Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
¿Cómo habilitar la lectura de otros datos de uid en la regla de base de fuego en tiempo real?

Tengo una aplicación de cliente que necesita saber si una tienda está abierta o no. Entonces, ¿la aplicación del cliente necesita acceder a los datos de uid de la tienda para saber si la tienda está abierta o no? ¿Cómo puedo lograr esto usando la regla de firebase? Y el propietario (tienda) de esto también puede cambiar su valor setShopOnOff:true .

 users SHOPID--rOOXXXoyCggX2 distributorId:"ASSSSASPbkHX2" email:"fSSASA@g.com" setShopOnOff:true CUSTOMERUID--fXXX5EjEVksOr53 acquired:true customer:true email : "csddd@g.com" franchiseId : "SHOPID--rOOXXXoyCggX2" income myAccount

y mis reglas actuales se ven así

 { "rules": { "users": { "$uid": { "setShopOnOff": { // not getting any data ".read": "auth != null && auth.uid == $uid", // tried true ".write": "$uid === auth.uid", }, ".read": "$uid === auth.uid", ".write": "$uid === auth.uid", }, }, "orders": { "$uid": { ".read": "$uid === auth.uid", ".write": "$uid === auth.uid", }, }, } }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!