Skip to contents

[Experimental]

Determines whether a collection should be visible based on its settings and the artist's default preferences.

Usage

is_collection_visible(collection_uuid, artist_uuid, cn = NULL)

Arguments

collection_uuid

Character. Collection UUID (required).

artist_uuid

Character. Artist UUID (required).

cn

Database connection. If NULL, creates and closes connection. Default: NULL.

Value

Logical. TRUE if collection is visible, FALSE otherwise.

Details

Visibility is determined by the following logic:

  1. If collection has a visibility_override, use that value

  2. If collection status is 'complete', it's visible

  3. Otherwise, use artist's default_wip_collection_visibility preference