benkleintechnologies / Guardia

0 stars 0 forks source link

Create basic permissions system on Admin Panel #4

Closed benkleintechnologies closed 4 months ago

benkleintechnologies commented 5 months ago

The web app is being used as the admin panel. We would like to create some permissions controls that the web admin user can use to allow or disallow certain users to see other users' locations.

Need to decide what the options will be and how to display them nicely to choose from.

These permissions will need to be stored in the database, either in their own table or connected to each user in an existing table.

Should probably use WebSocket instead of HTTP for live updates and communication with the server and database.

benkleintechnologies commented 4 months ago

There is now a users table in the database. Look at the structure and try to work with that unless you see a reason to change it.

benkleintechnologies commented 4 months ago

See #11 and look at FireStore in Firebase to see the database structure. We may add name or other fields to the user table.

I think the best way to do this is to have a settings or some other button which will take the user to another screen which will basically be a table view of all the users with the ability to update the settings for each user.