peer is a public data

This commit is contained in:
mr
2025-02-04 16:51:13 +01:00
parent 69bf951866
commit a8e2445c10
2 changed files with 10 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ func (r *WorkflowExecutions) CanUpdate(set utils.DBObject) (bool, utils.DBObject
if r.State != set.(*WorkflowExecutions).State {
return true, &WorkflowExecutions{State: set.(*WorkflowExecutions).State} // only state can be updated
}
return r.IsDraft, set // only draft buying can be updated
return !r.IsDraft, set // only draft buying can be updated
}
func (r *WorkflowExecutions) CanDelete() bool {