Commit 1bc47909 authored by Thomas Seidl's avatar Thomas Seidl
Browse files

Issue #3315269 by drunken monkey, GuyPaddock: Fixed illogical error handling...

Issue #3315269 by drunken monkey, GuyPaddock: Fixed illogical error handling code in "Content access" processor.
parent 542e798b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Search API 1.x, dev (xxxx-xx-xx):
---------------------------------
- #3315269 by drunken monkey, GuyPaddock: Fixed illogical error handling code in
  "Content access" processor.
- #3347610 by drunken monkey, itaran: Fixed error in HTML filter with very long
  attributes.
- #3317569 by drunken monkey: Added tests for indexing multi-valued reverse
+1 −4
Original line number Diff line number Diff line
@@ -243,10 +243,7 @@ class ContentAccess extends ProcessorPluginBase {
        $this->addNodeAccess($query, $account);
      }
      else {
        $account = $query->getOption('search_api_access_account', $this->getCurrentUser());
        if ($account instanceof AccountInterface) {
          $account = $account->id();
        }
        $account = $query->getOption('search_api_access_account');
        if (!is_scalar($account)) {
          $account = var_export($account, TRUE);
        }