Nothing here yet
Create a note to jot down ideas, or a checklist to manage your tasks. Everything is saved automatically.
Firestore Permissions Denied
Authentication was successful, but your database rejected the request. Update your Security Rules in the Firebase Console > Firestore Database > Rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /artifacts/taskflow/users/{userId}/{document=**} {
allow read, write: if request.auth != null && request.auth.uid == userId;
}
match /artifacts/taskflow/user_profiles/{userId} {
allow read: if request.auth != null;
allow write: if request.auth != null && request.auth.uid == userId;
}
match /artifacts/taskflow/friendships/{docId} {
allow read: if request.auth != null && (request.auth.uid == resource.data.uid1 || request.auth.uid == resource.data.uid2);
allow create: if request.auth != null && (request.auth.uid == request.resource.data.uid1 || request.auth.uid == request.resource.data.uid2);
allow delete: if request.auth != null && (request.auth.uid == resource.data.uid1 || request.auth.uid == resource.data.uid2);
}
match /artifacts/taskflow/shared_notes/{noteId} {
allow read, update: if request.auth != null && (request.auth.uid == resource.data.ownerUid || request.auth.uid in resource.data.sharedWithUids);
allow create: if request.auth != null && request.auth.uid == request.resource.data.ownerUid;
allow delete: if request.auth != null && request.auth.uid == resource.data.ownerUid;
}
}
}
Publish these exact rules, then refresh this app.