Skip to content

Commit

Permalink
Merge branch 'main' into BC-5809-students-can-open-topic-in-draft-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellinaresxk authored Dec 22, 2023
2 parents 3087741 + 98486f8 commit c684604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const editCourseHandler = (req, res, next) => {
let classesPromise;
if (FEATURE_GROUPS_IN_COURSE_ENABLED) {
classesAndGroupsPromise = api(req, { version: 'v3' })
.get('/groups/class', { qs: { limit: -1 } });
.get('/groups/class', { qs: { limit: -1, calledFrom: 'course' } });
} else {
classesPromise = api(req)
.get('/classes', {
Expand Down
2 changes: 1 addition & 1 deletion controllers/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const determineRedirectUrl = (req) => {

const filterSchoolsWithLdapLogin = (schools) => schools
// eslint-disable-next-line max-len
.filter((school) => school.systems.some((system) => system.type === 'ldap' && !system.oauthConfig));
.filter((school) => school.systems?.some((system) => system.type === 'ldap' && !system.oauthConfig));

async function getOauthSystems(req) {
return api(req, { version: 'v3' })
Expand Down

0 comments on commit c684604

Please sign in to comment.