Files
Yusuke Hosonuma bba546b517 fix: security rule
2020-10-02 18:09:45 +09:00

26 lines
531 B
Plaintext

rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
function signedIn(uid) {
return request.auth.uid == uid;
}
match /feedbacks/{doc} {
allow create: if request.auth.uid != null;
}
match /patternIndex/{index} {
allow read;
}
match /users/{uid} {
match /histories/{doc} {
allow read, create, update: if signedIn(uid);
}
match /stared/{doc} {
allow read, create, update: if signedIn(uid);
}
}
}
}