milkowska / MealBay

0 stars 0 forks source link

Make custom recipes private to the user #44

Closed milkowska closed 1 year ago

milkowska commented 1 year ago

The recipes that the user creates need to be saved into a private collection rather than the main recipes collection.

milkowska commented 1 year ago

Modified code to make the user id equal to user UID that is uniquely created by firebase authentication.

Image

The structure of the users collection has been altered so that each user will have a private collection (if he decides to create one by adding custom recipes) and where private recipes will be saved into. The collection private recipes contains recipe objects that the user enters directly through the application. These are no longer saved into public recipe collection, and the private collection can be viewed on the explore screen by clicking a your recipes button.