Ver Fonte

Get the page path

arvid-e há 3 meses atrás
pai
commit
d7becb7d27
1 ficheiros alterados com 2 adições e 0 exclusões
  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',
     );