Technically, a Site can be public with a private Item Set attached to it. However, such a situation will result in a Site being added to the Site Listing Block including for a non-authenticated visitor and my code will fail in trying to retrieve a thumbnail for the Site’s attached Item Set. The fail is throwing an
try ... catch the exception, but is there an Omeka-ier way to do it? Is there a way to test
isPublic() when the site visitor is not authenticated?
It feels a bit like this is a general PHP question, but there’s also an Omeka S specificity to it.