|
|
|
@@ -271,7 +271,7 @@ func DownloadMultiModelFile(ctx *context.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
if !isOper(ctx, task.UserId) { |
|
|
|
ctx.ServerError("no right.", errors.New(ctx.Tr("repo.model_noright"))) |
|
|
|
ctx.NotFound(ctx.Req.URL.RequestURI(), nil) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@@ -553,7 +553,7 @@ func isOper(ctx *context.Context, modelUserId int64) bool { |
|
|
|
func ShowModelPageInfo(ctx *context.Context) { |
|
|
|
log.Info("ShowModelInfo start.") |
|
|
|
if !isQueryRight(ctx) { |
|
|
|
ctx.ServerError("no right.", errors.New(ctx.Tr("repo.model_noright"))) |
|
|
|
ctx.NotFound(ctx.Req.URL.RequestURI(), nil) |
|
|
|
return |
|
|
|
} |
|
|
|
page := ctx.QueryInt("page") |
|
|
|
|