Browse Source

提交评测代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.2
zouap 3 years ago
parent
commit
722c2438bf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/ai_model_manage.go

+ 1
- 1
routers/repo/ai_model_manage.go View File

@@ -147,7 +147,7 @@ func SaveModel(ctx *context.Context) {
if !trainTaskCreate {
if !ctx.Repo.CanWrite(models.UnitTypeModelManage) {
//ctx.NotFound(ctx.Req.URL.RequestURI(), nil)
ctx.ServerError("No right.", errors.New(ctx.Tr("repo.model_noright")))
ctx.JSON(403, errors.New(ctx.Tr("repo.model_noright")))
return
}
}


Loading…
Cancel
Save