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

87
Views
Compare requesting users uid to admins uid

So I'm trying to write some firebase rules for my realtime database. I want my admin to be the only person/account that can edit an object in my database.

I've so far tried:

"Calender": {
  ".read": true,
  "$user_id": {
    ".write": "$user_id === 'admins uid here, copied from firebase console'",
  }
}

But as soon as I "set" to the database, I get the following warning, even if I'm logged in as the admin:

FIREBASE WARNING: set at /Calender failed: permission_denied

How do I compare if the user is an admin based on the requesting users 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!