mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-10-21 14:52:05 +02:00
fix: validate form edits and enforce task result ownership
This commit is contained in:
1 parent
ab17ffda87
commit
bdefa535b0
19 files changed
+331
-20
No files matched your search
@@ -757,6 +757,9 @@ func batchQueueConcurrencyFromRow(row *database.BatchTaskQueueRow) int {
|
||||
|
||||
// UpdateQueueMetadata 更新队列标题、角色、代理模式和并发数(非 running 时可用)
|
||||
func (m *BatchTaskManager) UpdateQueueMetadata(queueID, title, role, agentMode string, concurrency *int, hitlPolicies ...string) error {
|
||||
if concurrency != nil && (*concurrency < 1 || *concurrency > MaxBatchQueueConcurrency) {
|
||||
return fmt.Errorf("并发数必须为 1–%d", MaxBatchQueueConcurrency)
|
||||
}
|
||||
if utf8.RuneCountInString(title) > MaxBatchQueueTitleLen {
|
||||
return fmt.Errorf("标题不能超过 %d 个字符", MaxBatchQueueTitleLen)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user