From 6f8ad46c12fc274d0ba5afe60259caca1774cee0 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Mon, 17 Jan 2022 16:30:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/repo/course.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)