diff --git a/controllers/courses.js b/controllers/courses.js index 82f672f83a..023a474dca 100644 --- a/controllers/courses.js +++ b/controllers/courses.js @@ -322,7 +322,7 @@ const editCourseHandler = (req, res, next) => { } course.userIds = getUserIdsByRole(group.users, 'student'); - + course.substitutionIds = getUserIdsByRole(group.users, 'groupSubstitutionTeacher'); if (group.validPeriod) { course.startDate = timesHelper.fromUTC(group.validPeriod.from); course.untilDate = timesHelper.fromUTC(group.validPeriod.until);