This might be intended behaviour and what is needed is a note somewhere in the documentation.
If there is more than one representation on an object and the primary is set to private, while one or more of the others are set to public, then a check if there are representations based on access is returning false.
Both of the below are returning false
$object->get("ca_object_representations", array('checkaccess' => $access_values))
{{{<ifcount code="ca_object_representations" min="1"></ifcount>}}}
The use case for having a primary as private and others as public are cases such as:
- An AV file is the primary representation, but this is private, while a PDF/Document of the transcript is public
- An Article has the published version as primary and private and the pre-pub version as public.
This might be intended behaviour and what is needed is a note somewhere in the documentation.
If there is more than one representation on an object and the primary is set to private, while one or more of the others are set to public, then a check if there are representations based on access is returning false.
Both of the below are returning false
$object->get("ca_object_representations", array('checkaccess' => $access_values)){{{<ifcount code="ca_object_representations" min="1"></ifcount>}}}The use case for having a primary as private and others as public are cases such as: