diff --git a/routers/repo/course.go b/routers/repo/course.go index 013ee20da..9cdb5c12e 100644 --- a/routers/repo/course.go +++ b/routers/repo/course.go @@ -34,6 +34,10 @@ func CreateCoursePost(ctx *context.Context, form auth.CreateCourseForm) { return } + org, _ := models.GetUserByName(setting.Course.OrgName) + + ctx.Data["Owner"] = org + var topics = make([]string, 0) var topicsStr = strings.TrimSpace(form.Topics) if len(topicsStr) > 0 {