Browse Source

fix isDeleted logic

Yuki Takei 7 years ago
parent
commit
6e8fa641a4
1 changed files with 1 additions and 1 deletions
  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() {