From f9e5b33c2bdd5ecf2d5087728f5ff85e6822f633 Mon Sep 17 00:00:00 2001
From: Robin Appelman <robin@icewind.nl>
Date: Tue, 3 Dec 2019 15:20:54 +0100
Subject: [PATCH] remove old 'owner' filter

Signed-off-by: Robin Appelman <robin@icewind.nl>
---
 lib/private/Files/Cache/QuerySearchHelper.php | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/private/Files/Cache/QuerySearchHelper.php b/lib/private/Files/Cache/QuerySearchHelper.php
index a80156bc853..47380b72ffa 100644
--- a/lib/private/Files/Cache/QuerySearchHelper.php
+++ b/lib/private/Files/Cache/QuerySearchHelper.php
@@ -125,11 +125,6 @@ class QuerySearchHelper {
 	private function searchComparisonToDBExpr(IQueryBuilder $builder, ISearchComparison $comparison, array $operatorMap) {
 		$this->validateComparison($comparison);
 
-		// "owner" search is done by limiting the storages queries and should not be put in the sql
-		if ($comparison->getField() === 'owner') {
-			return null;
-		}
-
 		list($field, $value, $type) = $this->getOperatorFieldAndValue($comparison);
 		if (isset($operatorMap[$type])) {
 			$queryOperator = $operatorMap[$type];
-- 
GitLab