|
|
|
@@ -725,6 +725,7 @@ func isOper(ctx *context.Context, modelUserId int64) bool { |
|
|
|
func ShowModelConvertPageInfo(ctx *context.Context) { |
|
|
|
log.Info("ShowModelConvertInfo start.") |
|
|
|
if !isQueryRight(ctx) { |
|
|
|
log.Info("no right.") |
|
|
|
ctx.NotFound(ctx.Req.URL.RequestURI(), nil) |
|
|
|
return |
|
|
|
} |
|
|
|
@@ -745,6 +746,7 @@ func ShowModelConvertPageInfo(ctx *context.Context) { |
|
|
|
RepoID: repoId, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
log.Info("query db error." + err.Error()) |
|
|
|
ctx.ServerError("Cloudbrain", err) |
|
|
|
return |
|
|
|
} |
|
|
|
|