|
|
@@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|