Skip to content

Commit

Permalink
Allow to select supervisor as advisor as well
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-emilius committed Jul 29, 2024
1 parent 6b40647 commit 487c60d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const LegacyApplicationReviewModal = (props: ILegacyApplicationReviewModalProps)
/>
<UserMultiSelect
label='Advisor'
groups={['advisor']}
groups={['advisor', 'supervisor']}
multiSelect={true}
{...form.getInputProps('advisors')}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public Application accept(
thesis = thesisRepository.save(thesis);

for (User advisor : advisors) {
if (!advisor.hasGroup("advisor")) {
if (!advisor.hasGroup("advisor") && !advisor.hasGroup("supervisor")) {
throw new ResourceInvalidParametersException("User is not an advisor.");
}

Expand Down

0 comments on commit 487c60d

Please sign in to comment.