benkleintechnologies / Guardia

0 stars 0 forks source link

Add Visibility Toggle on web #37

Closed benkleintechnologies closed 4 months ago

benkleintechnologies commented 4 months ago

Add a toggle so that the admin of each time can decide from the dashboard whether all users on their team can view each others' locations or not. This also requires implementing the logic to prevent people from seeing others when this toggle is switched in the mobile app.

The original plan for individual user controls like this will be scrapped (and we can probably remove that field in the database and deal with this in a separate table)

A toggle or button for the admin (user of this web program) to decide if all users on their team can view each others' locations or not. In the background this should update the canViewOthers field in the user records for any user on the admins "team" (==teamId).

benkleintechnologies commented 4 months ago

Finished web part. Now need to implement on mobile: Make sure users can only view other users from their team, and only if their canViewOthers is true