peer is a public data
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user