From 0f87d5b07ef7cc4a001d21ce25024d1049d5ee16 Mon Sep 17 00:00:00 2001 From: sauls8t Date: Thu, 10 May 2018 15:12:17 +0100 Subject: [PATCH] New spaces to result in live documents Ensure community edition users do not see Draft document lifecycle. --- domain/space/endpoint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/domain/space/endpoint.go b/domain/space/endpoint.go index be308807..c1bc164f 100644 --- a/domain/space/endpoint.go +++ b/domain/space/endpoint.go @@ -39,6 +39,7 @@ import ( "github.com/documize/community/model/page" "github.com/documize/community/model/permission" "github.com/documize/community/model/space" + wf "github.com/documize/community/model/workflow" uuid "github.com/nu7hatch/gouuid" ) @@ -97,9 +98,9 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) { sp.Name = model.Name sp.RefID = uniqueid.Generate() sp.OrgID = ctx.OrgID - sp.Type = space.ScopePrivate sp.UserID = ctx.UserID sp.Type = space.ScopePrivate + sp.Lifecycle = wf.LifecycleLive err = h.Store.Space.Add(ctx, sp) if err != nil {