Skip to content

Commit

Permalink
fixed wrong method call
Browse files Browse the repository at this point in the history
  • Loading branch information
karjo24 committed Oct 24, 2024
1 parent d089fd4 commit fc315ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ func meiliCourseFilter(c *gin.Context, user *model.User, firstSemester model.Sem
} else {
var administeredCourses []model.Course
if semesters == nil {
enrolledCourses = user.CoursesBetweenSemestersWithoutAdministeredCourses(firstSemester, lastSemester)
administeredCourses = user.AdministeredCoursesBetweenSemesters(firstSemester, lastSemester)
} else {
enrolledCourses = user.CoursesForSemestersWithoutAdministeredCourses(semesters)
administeredCourses = user.AdministeredCoursesForSemesters(semesters)
}
administeredCoursesFilter := courseSliceToString(administeredCourses)
permissionFilter = fmt.Sprintf("(visibility = \"loggedin\" OR visibility = \"public\" OR (visibility = \"enrolled\" AND ID IN %s) OR ID IN %s)", enrolledCoursesFilter, administeredCoursesFilter)
Expand Down

0 comments on commit fc315ac

Please sign in to comment.