1

Can somebody please explain why this rule

match /invoices/{id} {
        allow read, update, delete: if request.auth.uid == resource.data.uid;
} 

giving me nothing, but when this:

match /invoices/{id} {
        allow read, update, delete: if request.auth.uid == 'gkaT45c7gYXCqQpw5al6Fbh9fgC3';
}

is working

enter image description here

Mario.G
  • 23
  • 4

1 Answers1

0

solved the problem by changing the query and created an index relying on the new query variable

Mario.G
  • 23
  • 4