Browse Source

Merge pull request '调整调试权限---前端' (#1188) from fix-1067 into V20211228

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1188
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
tags/v1.21.12.2^2
ychao_1983 3 years ago
parent
commit
b04a5315e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/modelarts.go

+ 1
- 1
routers/repo/modelarts.go View File

@@ -74,7 +74,7 @@ func DebugJobIndex(ctx *context.Context) {
}

for i, task := range ciTasks {
ciTasks[i].CanDebug = cloudbrain.CanCreateOrDebugJob(ctx)
ciTasks[i].CanDebug = cloudbrain.CanModifyJob(ctx, &task.Cloudbrain)
ciTasks[i].CanDel = cloudbrain.CanDeleteJob(ctx, &task.Cloudbrain)
ciTasks[i].Cloudbrain.ComputeResource = task.ComputeResource
}


Loading…
Cancel
Save