Browse Source

Merge pull request '修复游客查看云脑列表页面报错' (#1042) from fix-969 into V20211213

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1042
Reviewed-by: lewis <747342561@qq.com>
pull/1047/head
lewis 3 years ago
parent
commit
522ddf9575
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 { func CanCreateOrDebugJob(ctx *context.Context) bool {
if !ctx.IsSigned {
return false
}
return ctx.Repo.CanWrite(models.UnitTypeCloudBrain) return ctx.Repo.CanWrite(models.UnitTypeCloudBrain)
} }




Loading…
Cancel
Save