Explorar el Código

Get the page path

arvid-e hace 3 meses
padre
commit
d7becb7d27
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      apps/app/src/server/models/obsolete-page.js

+ 2 - 0
apps/app/src/server/models/obsolete-page.js

@@ -343,6 +343,8 @@ export const getPageSchema = (crowi) => {
   pageSchema.statics.isAccessiblePageByViewer = async function (id, user) {
     const baseQuery = this.count({ _id: id });
 
+    const page = await this.findById(id).select('path');
+
     const disabledUserPages = configManager.getConfig(
       'security:disableUserPages',
     );