Bottom Sheet with conditional code

I implemented a Bottom Sheet as a custom component. This sheet will be opened by an action from another widget. The Bottom Sheet has a RatingBar. Once clicked, the RatingBar should update the database and close the BottomSheet. However, I get a permission error:

Uncaught (in promise) Error: FirebaseError: [code=permission-denied]: Missing or insufficient permissions.

Any ideas why this happens?

FYI: currently, the permission to write to this specific database is set to "Everyone".

1
4 replies