PERMISSION_DENIED, when permissions are actually allowed
Ok, i found it myself how to do it.
Go to database, next to title there are 2 options:
Cloud Firestore
,
Realtime database
Select Realtime database and go to rules
change rules to true.
This solved my problem.