Previously, I had the following rule:
allow read: if request.auth.token.email in resource.data.shareWith;
Now, that the data structure changed and shareWith is no longer an array of email addresses, but an array of maps, how can I adapt this rule accordingly?
This is how the DB looks like now:
shareWith: [ { email, phone }, { email, phone }, ... ]
