anchor.diff:                           resource_state = SearchState,
                            organization_name = OrgName,
                            organization_guid = OrgId,
  -                         reqid = ReqId} = State) ->
  +                         reqid = ReqId,
  +                         requestor_id = RequestorId} = State) ->
       BatchSize = batch_size(),
       Query = SearchState#search_state.solr_query,
       case solr_query(Query, ReqId) of
  
positive.code:             IndexType = Query#chef_solr_query.index,
              Paths = SearchState#search_state.partial_paths,
              BulkGetFun = make_bulk_get_fun(DbContext, OrgName, IndexType, Paths, Req),
              {DbNumFound, Ans} = make_search_results(BulkGetFun, Ids, BatchSize,
                                                      Start, SolrNumFound),
              State1 = State#base_state{log_msg = search_log_msg(SolrNumFound,
                                                                 solr_ids_length(Ids), DbNumFound)},
  
negative.code:     case chef_db:fetch(#chef_data_bag{org_id = OrgId, name = BagName}, DbContext) of
          not_found -> [];
          #chef_data_bag{authz_id = AuthzId} ->
              case ?SH_TIME(oc_chef_authz, is_authorized_on_resource, (RequestorId, object, AuthzId, actor, RequestorId, read)) of
                  false -> [];
                  true -> Ids;
                  Error ->
  