SilverStripe\FullTextSearch\Search\Services\SearchableService::isViewable
Used when retrieving search results
This is considered the secondary layer of protection It's important to still have this layer in conjuction with the index layer as non-searchable results may be in the search index because: a) they were added to the index pre-fulltextsearch 3.7 and a reindex to purge old records was never run, OR b) the DataObject has a non-deterministic canView() check such as `return $date <= $dateOfIndex;`
Signature
public function isViewable(DataObject
$obj )
Parameters
$obj
— SilverStripe\ORM\DataObject
Returns
- bool