1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

Exclude draft versions from non-lifecycle users

Only show draft documents to those with lifecycle permissions.

Closes #242
This commit is contained in:
Harvey Kandola 2019-04-15 13:23:41 +01:00
parent 2fffb7869e
commit e10d04d22e
5 changed files with 753 additions and 734 deletions

View file

@ -107,6 +107,7 @@ type SitemapDocument struct {
// Version points to a version of a document.
type Version struct {
VersionID string `json:"versionId"`
DocumentID string `json:"documentId"`
VersionID string `json:"versionId"`
DocumentID string `json:"documentId"`
Lifecycle workflow.Lifecycle `json:"lifecycle"`
}