Yuki Takei пре 7 година
родитељ
комит
6e8fa641a4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/models/page.js

+ 1 - 1
src/server/models/page.js

@@ -117,7 +117,7 @@ module.exports = function(crowi) {
   }
 
   pageSchema.methods.isDeleted = function() {
-    return this.status === STATUS_DELETED;
+    return (this.status === STATUS_DELETED) || checkIfTrashed(this.path);
   };
 
   pageSchema.methods.isPublic = function() {