Skip to content

Commit

Permalink
HPC-9107: Allow cluster lead to grant ownership of project
Browse files Browse the repository at this point in the history
  • Loading branch information
enxtur committed Aug 31, 2023
1 parent 9df1cdc commit 704cf98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/auth/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ export const AUTH_PERMISSIONS = {
* Can move projects associated with this cluster to any step of the workflow.
*/
PROJECT_WORKFLOW_MOVE_IF_PLAN_UNLOCKED: 'projectWorkflowMoveIfPlanUnlocked',
/**
* Can edit access and permissions of all projects.
*/
MODIFY_ACCESS_AND_PERMISSIONS_OF_PROJECTS:
'canModifyAccessAndPermissionsOfProjects',
},
} as const;

Expand Down
1 change: 1 addition & 0 deletions src/auth/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export const calculatePermissionsFromRolesGrant = async <
geSet.add(P.governingEntity.EDIT_DATA);
geSet.add(P.governingEntity.EDIT_PROJECTS);
geSet.add(P.governingEntity.PROJECT_WORKFLOW_MOVE_IF_PLAN_UNLOCKED);
geSet.add(P.governingEntity.MODIFY_ACCESS_AND_PERMISSIONS_OF_PROJECTS);
planSet.add(P.plan.VIEW_DATA);
}
}
Expand Down

0 comments on commit 704cf98

Please sign in to comment.