From 4ac1523b7a7fac81cb961a095a40b90c07e08ff6 Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Tue, 31 Jan 2023 15:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/api/v1/tech/tech.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/tech/tech.go b/routers/api/v1/tech/tech.go index 3fcbdd669..37a795c21 100644 --- a/routers/api/v1/tech/tech.go +++ b/routers/api/v1/tech/tech.go @@ -257,7 +257,7 @@ func IsAdmin(ctx *context.APIContext) { userName := ctx.Query("user") user, err := models.GetUserByName(userName) if err != nil { - ctx.JSON(http.StatusOK, response.ServerError("User not exists")) + ctx.JSON(http.StatusOK, response.OuterServerError("User not exists")) return } isAdmin := role.UserHasRole(user.ID, models.TechProgramAdmin)