Permission Error

I am building an attendance application, and I have been stuck with this error:

FirebaseError: Missing or insufficient permissions: The following request was denied by Firestore Security Rules:
{
“auth”: {
“uid”: “o1h5yZuPsrOR1AUhAfhSWJQx8kG2”,
“token”: {
“name”: null,
“email”: “admin@properly.com.ng”,
“email_verified”: false,
“phone_number”: null,
“sub”: “o1h5yZuPsrOR1AUhAfhSWJQx8kG2”,
“firebase”: {
“identities”: {
“password”: [
“admin@properly.com.ng”
]
},
“sign_in_provider”: “password”,
“tenant”: null
}
}
},
“method”: “list”,
“path”: “/databases/(default)/documents/attendance where userId == o1h5yZuPsrOR1AUhAfhSWJQx8kG2”
}
at CheckInCard.useEffect.checkForActiveCheckIn (https://6000-firebase-studio-1761063466936.cluster-lu4mup47g5gm4rtyvhzpwbfadi.cloudworkstations.dev/_next/static/chunks/_d1c47306._.js:205:53)
at FirebaseProvider (https://6000-firebase-studio-1761063466936.cluster-lu4mup47g5gm4rtyvhzpwbfadi.cloudworkstations.dev/_next/static/chunks/src_afbe7875._.js:1862:215)
at FirebaseClientProvider
at RootLayout

I have tried everything possible, but I cannot seem to go past this error or fix it. Please help.

1 Like

How were you able to fix this or did you?

Hello, for this you need to check your firestore rules.. thats where the issue coming from. let me know if you able to fix it