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)