12 lines
417 B
Python
12 lines
417 B
Python
"""Shared default: only explicit published=false is excluded.
|
|
|
|
Missing/NULL publication metadata follows the wiki default and remains visible.
|
|
published_only=False is an explicit opt-out for authenticated/admin workflows.
|
|
"""
|
|
DEFAULT_PUBLISHED_ONLY = True
|
|
PUBLICATION_POLICY_VERSION = 'explicit-false-hidden-v1'
|
|
|
|
|
|
def effective_published(value: bool | None) -> bool:
|
|
return True if value is None else bool(value)
|