|
@@ -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) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|