Fix drafts never showing, even when not part of private/protected blog
This commit is contained in:
parent
815500ab78
commit
bf213cd0b0
4
posts.go
4
posts.go
|
@ -434,9 +434,7 @@ func handleViewPost(app *App, w http.ResponseWriter, r *http.Request) error {
|
||||||
log.Error("view post: %v", err)
|
log.Error("view post: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
protectDraft = (collection.IsPrivate() || collection.IsProtected())
|
protectDraft = collection.IsPrivate() || collection.IsProtected()
|
||||||
} else {
|
|
||||||
protectDraft = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if post has been unpublished
|
// Check if post has been unpublished
|
||||||
|
|
Loading…
Reference in New Issue