Browse Source

修复游客查看云脑列表页面报错

tags/v1.21.12.1^2
ychao_1983 4 years ago
parent
commit
57781347b3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/cloudbrain/cloudbrain.go

+ 3
- 0
modules/cloudbrain/cloudbrain.go View File

@@ -53,6 +53,9 @@ func CanDeleteTrainJob(ctx *context.Context, job *models.Cloudbrain) bool {
}

func CanCreateOrDebugJob(ctx *context.Context) bool {
if !ctx.IsSigned {
return false
}
return ctx.Repo.CanWrite(models.UnitTypeCloudBrain)
}



Loading…
Cancel
Save