From b8ace566100df2d5849fc59904ac64f8dd7e3fc5 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 19 Jan 2022 09:12:20 +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 | 4 ++++ 1 file changed, 4 insertions(+) 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 {