Slide 41
Slide 41 text
σʔλߏྫɿ'JSFTUPSF
service cloud.firestore {
match /databases/{database}/documents {
match /users/{userID} { // {userID}PathParameterΈ͍ͨͳͷ
allow get, list; // ୭ͰಡΈऔΓՄ
allow create, update: if request.auth != null // ೝূࡁΈϢʔβʔ
&& request.auth.uid == userID // ϦΫΤετϢʔβʔͱσʔλ͕Ұக
}
}
}
σʔλߏ্ͷҐஔ
ແ݅ʹಡΈऔΓڐՄ
ࣗͷσʔλͷΈมߋՄ
ϓϩϑΟʔϧ୭Ͱݟ͍͍͚ͯͲฤूࣗͷΈ0,ͷྫ