Is draft
This commit is contained in:
@@ -109,6 +109,7 @@ func ModelGenericUpdateOne(change map[string]interface{}, id string, a Accessor)
|
||||
obj := a.NewObj()
|
||||
b, _ := json.Marshal(r)
|
||||
json.Unmarshal(b, obj)
|
||||
obj.SetDraft(change["is_draft"] == true)
|
||||
if !a.GetRequest().Admin {
|
||||
var ok bool
|
||||
ok, r = r.CanUpdate(obj)
|
||||
|
||||
Reference in New Issue
Block a user