فهرست منبع

GC-1183: index all pages except for redirect

* BugFix
Yuki Takei 7 سال پیش
والد
کامیت
c801186736
1فایلهای تغییر یافته به همراه0 افزوده شده و 6 حذف شده
  1. 0 6
      src/server/models/page.js

+ 0 - 6
src/server/models/page.js

@@ -808,14 +808,8 @@ module.exports = function(crowi) {
    * Bulk get (for internal only)
    */
   pageSchema.statics.getStreamOfFindAll = function(options) {
-    const opt = options || {};
-    const publicOnly = opt.publicOnly || true;
     const criteria = { redirectTo: null };
 
-    if (publicOnly) {
-      criteria.grant = GRANT_PUBLIC;
-    }
-
     return this.find(criteria)
       .populate([{ path: 'creator', model: 'User' }, { path: 'revision', model: 'Revision' }])
       .lean()