Skip to content

Commit

Permalink
Permit ProjectDeveloper to view released files
Browse files Browse the repository at this point in the history
People assigned the ProjectDeveloper role have permission to view
unreleased files,
they therefore have permission to view the less-sensitive released files

This change removes the need to assign both of these roles to researchers
working on a project.
  • Loading branch information
Jongmassey authored and mikerkelly committed Oct 10, 2024
1 parent ec6f17a commit d70a22f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jobserver/authorization/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class ProjectDeveloper:
job_cancel,
job_run,
project_manage,
release_file_view,
snapshot_create,
unreleased_outputs_view,
workspace_archive,
Expand Down
1 change: 1 addition & 0 deletions tests/unit/jobserver/api/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ def test_userapidetail_success(api_rf, project_membership):
"job_cancel",
"job_run",
"project_manage",
"release_file_view",
"snapshot_create",
"unreleased_outputs_view",
"workspace_archive",
Expand Down

0 comments on commit d70a22f

Please sign in to comment.