Fix Permissions for Project access(detail view) (#3220)
Fixes #3205 Fixes #3216 1. Staff can access the project in every status. 2. Contracting can access projects only in `WAITING_FOR_APPROVAL` and `CONTRACTING` statuses. 3. Finance can access projects only in the `WAITING_FOR_APPROVAL` and `IN_PROGRESS` statuses. 4. Applicant(only project user) can access the project in every status to keep track. 5. Unauthorised users and any other role can not access the project.
Showing
- hypha/apply/projects/permissions.py 20 additions, 0 deletionshypha/apply/projects/permissions.py
- hypha/apply/projects/tests/test_views.py 3 additions, 2 deletionshypha/apply/projects/tests/test_views.py
- hypha/apply/projects/views/project.py 6 additions, 2 deletionshypha/apply/projects/views/project.py
Loading
Please register or sign in to comment