Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:TUM-Dev/gocast into enh/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobortolan committed Nov 27, 2024
2 parents eaeaa6f + d1aec98 commit e513ca4
Show file tree
Hide file tree
Showing 61 changed files with 2,788 additions and 229 deletions.
1 change: 1 addition & 0 deletions api/courses.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ func (r coursesRoutes) getCourseBySlug(c *gin.Context) {

if (course.IsLoggedIn() && tumLiveContext.User == nil) || (course.IsEnrolled() && !tumLiveContext.User.IsEligibleToWatchCourse(course)) {
c.AbortWithStatus(http.StatusUnauthorized)
return
}

user := tumLiveContext.User
Expand Down
2 changes: 1 addition & 1 deletion api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func ConfigGinRouter(router *gin.Engine) {
configWorkerRouter(router, daoWrapper)
configNotificationsRouter(router, daoWrapper)
configInfoPageRouter(router, daoWrapper)
configGinSearchRouter(router, daoWrapper)
configGinSearchRouter(router, daoWrapper, tools.NewMeiliSearchFunctions())
configAuditRouter(router, daoWrapper)
configGinBookmarksRouter(router, daoWrapper)
configMaintenanceRouter(router, daoWrapper)
Expand Down
Loading

0 comments on commit e513ca4

Please sign in to comment.