FirebaseError - Permission denied

First of all, I would like to talk about the structure of the application in order to be understandable.

1- The application is divided into two as admin panel and external main application.

2- Text is written to the application only from the admin panel. reading from the main application.

3- There are 4 firebasetabase headers: ‘bildirim’, ‘guncel’, ‘spot’, ‘users’.
note: I do not have the possibility to print ‘bildirim’, ‘guncel’ and ‘spot’ titles under contacts in users. Please do not submit this idea.

Now I want to explain the problem.

Our problem is that when I subscribe to google and put it on the second page, I can neither write nor read. I am getting firebase denied error.

What I am trying to do is;

1- Only those who use the admin application can write.
2- Those who log in with google can read both applications.

Screenshots:








Ekran Alıntısı

I have read many articles and could not find a solution. This topic is for paid help.

If you look at the link, many methods have been tried.

this is wrong again. please help, i’ve been trying for days but it’s not working.