Skip to content

Commit 0f87d5b

Browse files
committed
New spaces to result in live documents
Ensure community edition users do not see Draft document lifecycle.
1 parent c94fd9c commit 0f87d5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

domain/space/endpoint.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import (
3939
"github.com/documize/community/model/page"
4040
"github.com/documize/community/model/permission"
4141
"github.com/documize/community/model/space"
42+
wf "github.com/documize/community/model/workflow"
4243
uuid "github.com/nu7hatch/gouuid"
4344
)
4445

@@ -97,9 +98,9 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
9798
sp.Name = model.Name
9899
sp.RefID = uniqueid.Generate()
99100
sp.OrgID = ctx.OrgID
100-
sp.Type = space.ScopePrivate
101101
sp.UserID = ctx.UserID
102102
sp.Type = space.ScopePrivate
103+
sp.Lifecycle = wf.LifecycleLive
103104

104105
err = h.Store.Space.Add(ctx, sp)
105106
if err != nil {

0 commit comments

Comments
 (0)