This is my error: Error running simulation — Error: simulator.rules line [10], column [13]. Function not found error: Name: [get].; Error: Invalid argument provided to call. Function: [get], Argument: ["||invalid_argument||"]
When i run this i have used all the resources i can find on the web and found nothing that will work (the allow read works and create does when i just use isSignedIn() ) ... little help please.
service cloud.firestore {
match /databases/{database}/documents{
match /users/{documents} {
function isSignedIn() {
return request.auth != null;
}
function getRole(admin){
return get(/databases/$(database)/documents/users.[request.auth.uid]).data.admin;
}
allow read: if true;
allow write: if getRole(admin) == true;
}
}
}