My firebase project has connected with two flutter projects. I want to disable to update using
/Order/{uniqueCode} {
allow read: if true;
allow write: if true;
allow update: if false;
allow delete: if false;
}
but both from my flutter app if I run this query
firestore!.collection('Order').doc(order!.orderId!).update({
'payment': true,
'paymentFrom': 1,
'status': 2,
'paymentDate': FieldValue.serverTimestamp()
}).then((_) {
print('update successfully');
}).catchError((onError) {
print(onError.toString());
});
the fields is updated properly
