응용1) 지금은 채팅 버튼 누를 때마다 채팅방게시물이 생성됩니다.
그러면 안되겠죠? 이미 내uid, 상대방uid가 포함된 게시물이 있으면 새로 만들지 말아달라는 코드는 어떻게 작성하면 될까요
라는 숙제에서 그냥 Firebase cloud firebase 규칙을
match /chatroom/{docid}{
allow read, update: if true;
allow create : if request.auth.uid != resource.data.uid;
allow delete : if request.auth.uid == resource.data.uid;
}
이렇게만 바꾸면 되는데 permission 에러가 뜹니다
상관없나요?