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:
parent
2fffb7869e
commit
e10d04d22e
5 changed files with 753 additions and 734 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue