Преглед изворни кода

Made deleted pages not to be displayed in "recent-create"

b4b4r07 пре 9 година
родитељ
комит
b890fd5da5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/models/page.js

+ 1 - 1
lib/models/page.js

@@ -541,7 +541,7 @@ module.exports = function(crowi) {
     var User = crowi.model('User');
     var limit = option.limit || 50;
     var offset = option.offset || 0;
-    var conditions = { creator: user._id, redirectTo: null };
+    var conditions = { creator: user._id, redirectTo: null, status: STATUS_PUBLISHED };
     if (!user.equals(currentUser._id)) {
       conditions.grant = GRANT_PUBLIC;
     }