Ionic firebase @4.12.1 missing or insufficient permissions

I’m using ionic the problem is when a user logged out I got this error: permissions denied although I’ve unsubscribed to observable. I’m using side menu Starter. I subscribe to observable when menu open and unsubscribe when it’s closed using ionOpen and ionClose events

stack Over flow Link

please help !!