Skip to content

Commit

Permalink
added a check so that only users are checked by auth connector
Browse files Browse the repository at this point in the history
  • Loading branch information
ARADDCC002 committed Nov 26, 2024
1 parent 540b126 commit 72eabf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/services/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ async function validateCollaborators(
if (collaborator === '') {
throw BadReq('Collaborator name must be a valid string')
}
await authentication.getUserInformation(collaborator)
// TODO we currently only check for users, we should consider how we want to handle groups
if (collaborator.startsWith('user:')) {
await authentication.getUserInformation(collaborator)
}
}),
)
}
Expand Down

0 comments on commit 72eabf5

Please sign in to comment.