Просмотр исходного кода

WIP: GC-1185: consider restriction when searching

* activate filterPagesByType
Yuki Takei 7 лет назад
Родитель
Сommit
ac92986654
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/server/util/search.js

+ 2 - 2
src/server/util/search.js

@@ -653,7 +653,7 @@ SearchClient.prototype.searchKeyword = function(keyword, user, userGroups, optio
   const query = this.createSearchQuerySortedByScore();
   this.appendCriteriaForKeywordContains(query, keyword);
 
-  // this.filterPagesByType(query, type);
+  this.filterPagesByType(query, type);
   this.filterPagesByViewer(query, user, userGroups);
 
   this.appendResultSize(query, from, size);
@@ -675,7 +675,7 @@ SearchClient.prototype.searchKeywordUnderPath = function(keyword, path, user, us
   this.appendCriteriaForKeywordContains(query, keyword);
   this.appendCriteriaForPathFilter(query, path);
 
-  // this.filterPagesByType(query, type);
+  this.filterPagesByType(query, type);
   this.filterPagesByViewer(query, user, userGroups);
 
   this.appendResultSize(query, from, size);