Hello and have a nice day!
I apologize in advance if I’m posting this in the wrong section.
I’m trying to solve an issue with Firebase security rules for admin access. My goal is to allow an admin user to edit other users' data in the Firestore database.
When a new user registers, they automatically get the "client" role. I want admins to be able to change this role to "employer", but I keep getting a "Missing or insufficient permissions" error.
I’ve tried using ChatGPT, Gemini, and other tools, but I still haven’t been able to make it work.
Any help or advice would be greatly appreciated!
Thank you.