Skip to content

Commit

Permalink
perms: Allow readonly job applications to GPS
Browse files Browse the repository at this point in the history
  • Loading branch information
rsebille committed Jan 6, 2025
1 parent 6d16bb5 commit 846b35b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions itou/users/management/commands/sync_group_and_perms.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def get_permissions_dict():
group_gps_admin_permissions = {
gps_models.FollowUpGroup: PERMS_ALL,
gps_models.FollowUpGroupMembership: PERMS_ALL,
job_applications_models.JobApplication: PERMS_READ,
job_applications_models.JobApplicationTransitionLog: PERMS_READ,
users_models.User: PERMS_ADD | PERMS_HIJACK,
users_models.JobSeekerProfile: PERMS_EDIT,
}
Expand Down
4 changes: 4 additions & 0 deletions tests/users/__snapshots__/test_sync_group_and_perms.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
list([
'view_followupgroup',
'view_followupgroupmembership',
'view_jobapplication',
'view_jobapplicationtransitionlog',
'view_jobseekerprofile',
'view_user',
])
Expand All @@ -17,6 +19,8 @@
'change_followupgroupmembership',
'delete_followupgroupmembership',
'view_followupgroupmembership',
'view_jobapplication',
'view_jobapplicationtransitionlog',
'change_jobseekerprofile',
'view_jobseekerprofile',
'add_user',
Expand Down

0 comments on commit 846b35b

Please sign in to comment.