code: protected boolean hasPermissions(CmsObject cms, CmsSolrDocument doc, CmsResourceFilter filter) {
  
          return null != (filter == null ? getResource(cms, doc) : getResource(cms, doc, filter));
      }
docs: Check, if the current user has permissions on the document's resource.
  @param cms the context
  @param doc the solr document (from the search result)
  @param filter the resource filter to use for checking permissions
  @return <code>true</code> iff the resource mirrored by the search result can be read by the current user.