benkleintechnologies / Guardia

0 stars 0 forks source link

Create way for Admin to share access with another team #19

Closed benkleintechnologies closed 4 months ago

benkleintechnologies commented 4 months ago

Each team has a unique teamId. An admin from one team should be able to share his volunteers' locations with another team.

Add a section with the ability to share access with another team. So this should be a component like UserList and SOSMessages that will have a list of all teams the admin has shared access with and an option to delete any of them or add one by entering their teamId. When an item is added or removed from the list it should add or remove a record from the "sharing" collection in firebase which will have a "from" field and a "to" field indicating who's sharing with who. Then we also need to implement this when retrieving data by checking if anyone has shared location "to" the user's teamId and get that team's locations to display as well