Browse Source

debug task signed in

tags/v1.21.12.1
lewis 4 years ago
parent
commit
fc27c14e1f
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      routers/repo/cloudbrain.go

+ 0
- 5
routers/repo/cloudbrain.go View File

@@ -375,11 +375,6 @@ func CloudBrainCommitImage(ctx *context.Context, form auth.CommitImageCloudBrain

func CloudBrainStop(ctx *context.Context) {
var jobID = ctx.Params(":jobid")
if !ctx.IsSigned {
log.Error("the user has not signed in")
ctx.Error(http.StatusForbidden, "","the user has not signed in")
return
}
task, err := models.GetCloudbrainByJobID(jobID)
if err != nil {
ctx.ServerError("GetCloudbrainByJobID failed", err)


Loading…
Cancel
Save