You were getting "Missing or insufficient permissions" errors when trying to access your user profile.
I've updated and redeployed the Firestore security rules to properly allow users to:
- ✅ Read their own profile
- ✅ Write/update their own profile
- ✅ Create their own profile
- Hard refresh your browser (Ctrl+F5 on Windows, Cmd+Shift+R on Mac)
- Or just reload the page normally
If you're still on the profile completion page:
- Fill out the form
- Click "Complete Profile"
- It should save successfully now
Since you're an admin, you can also just go directly to:
https://rretoriq25.web.app/admin/dashboard
The admin bypass is already in place, so you don't need to complete the profile if you don't want to.
File: firestore.rules
Before: Rules had allow update: if true which was being overridden
After: Simplified to:
match /users/{userId} {
// Users can read and write their own profile
allow read, write: if request.auth != null && request.auth.uid == userId;
// Users can create their own profile
allow create: if request.auth != null && request.auth.uid == userId;
// Users can update their own profile
allow update: if request.auth != null && request.auth.uid == userId;
}| Issue | Status |
|---|---|
| ✅ Firestore permissions | FIXED - Rules deployed |
| ✅ Admin claim | Set for your account |
| ✅ Admin bypass | Profile completion optional |
| Still need to be set |
Option 1: Complete Your Profile
- Refresh the page
- Fill out the profile form
- Click "Complete Profile"
- Should work now!
Option 2: Go to Admin Dashboard
- Navigate to: https://rretoriq25.web.app/admin/dashboard
- You'll see the institution setup page
- BUT API calls won't work until you set Vercel environment variables
Firestore rules deployed: ✅
Ready to use: ✅
Try it now!