Explorar el Código

fix isDeleted logic

Yuki Takei hace 7 años
padre
commit
6e8fa641a4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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() {