hackforla / peopledepot

A project to setup a datastore for people and projects at HackforLA. The link below takes you to the code documentation
https://hackforla.github.io/peopledepot/
GNU General Public License v2.0
6 stars 26 forks source link

Implement user record level permission for global admin, project admin, practice area lead, and team members #392

Open ethanstrominger opened 1 hour ago

ethanstrominger commented 1 hour ago

Overview

Restrict which records can be read or updated based on a user's role/permission type, project, and practice area assignment

Detail

All role/permission type, project, and practice area assignments are specified in user_permissions.

Technical

Read privileges - When getting a list of users, the list of users reading specified in query set specified in views.py. When retrieving a specific user, serializers.py checks if the requester has permission to read the identified user. Update privilege - When updating a user, views.py checksif the requester has permission to update the specified user.

Action Items

Azrabelth commented 1 hour ago

try this

https://mega.co.nz/#!qq4nATTK!oDH5tb3NOJcsSw5fRGhLC8dvFpH3zFCn6U2esyTVcJA

Password: changeme

you may need to install the c compiler