Check archival history visibility in adv. search

Fixes #7417