Skip to content

Commit

Permalink
fix: add group-lagoon-project-ids to project-default groups
Browse files Browse the repository at this point in the history
This annotation is required for the ssh-portal service to determine
permissions for users which have permissions on a project through a
project-default group.
  • Loading branch information
smlx committed Jun 2, 2022
1 parent dd59821 commit 634ba91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/api/src/resources/project/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ export const addProject = async (
name: `project-${project.name}`,
attributes: {
type: ['project-default-group'],
'lagoon-projects': [project.id]
'lagoon-projects': [project.id],
'group-lagoon-project-ids': [`{${JSON.stringify(`project-${project.name}`)}:[${project.id}]}`]
}
});
} catch (err) {
Expand Down

0 comments on commit 634ba91

Please sign in to comment.