1
0
mirror of https://github.com/writeas/writefreely synced 2025-02-02 23:27:30 +01:00

Fix drafts never showing, even when not part of private/protected blog

This commit is contained in:
Matt Baer 2023-10-06 12:40:46 -04:00
parent 815500ab78
commit bf213cd0b0

View File

@ -434,9 +434,7 @@ func handleViewPost(app *App, w http.ResponseWriter, r *http.Request) error {
log.Error("view post: %v", err)
}
protectDraft = (collection.IsPrivate() || collection.IsProtected())
} else {
protectDraft = true
protectDraft = collection.IsPrivate() || collection.IsProtected()
}
// Check if post has been unpublished