Exception has occurred. FirebaseException ([cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.)
Code:
Future<Users> bringUser(id) async {
DocumentSnapshot doc =
await _firestore.collection("kullanicilar").doc(id).get();
if (doc.exists) {
Users users = Users.dokumandanUret(doc);
return users;
}
return null;
}
Firebase:
{
"rules": {
".read": true,
".write": true
}
}