Determines whether a collection should be visible based on its settings and the artist's default preferences.
Arguments
- collection
Character. Collection UUID. Validated with
artcore::validate_uuid()where applicable.- artist
Character. Artist UUID (format:
"746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated withartcore::validate_uuid()where applicable.- cn
Database connection. If NULL, creates a connection via
artcore::dbc()and closes it on exit. Pass an existing connection to batch multiple queries efficiently.
Details
Visibility is determined by the following logic:
If collection has a visibility_override, use that value
If collection status is 'complete', it's visible
Otherwise, use artist's default_wip_collection_visibility preference
