diff --git a/routers/repo/course.go b/routers/repo/course.go index b8f39817b..013ee20da 100644 --- a/routers/repo/course.go +++ b/routers/repo/course.go @@ -19,8 +19,9 @@ const ( func CreateCourse(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("new_course") + org, _ := models.GetUserByName(setting.Course.OrgName) - ctx.Data["Owner"] = setting.Course.OrgName + ctx.Data["Owner"] = org ctx.HTML(200, tplCreateCourse)