|
@@ -252,7 +252,7 @@ module.exports = function(crowi, app) {
|
|
|
}).then(function(bookmarkList) {
|
|
}).then(function(bookmarkList) {
|
|
|
renderVars.bookmarkList = bookmarkList;
|
|
renderVars.bookmarkList = bookmarkList;
|
|
|
|
|
|
|
|
- return Page.findListByCreator(userData, {limit: 10});
|
|
|
|
|
|
|
+ return Page.findListByCreator(userData, {limit: 10}, req.user);
|
|
|
}).then(function(createdList) {
|
|
}).then(function(createdList) {
|
|
|
renderVars.createdList = createdList;
|
|
renderVars.createdList = createdList;
|
|
|
return Promise.resolve();
|
|
return Promise.resolve();
|
|
@@ -477,7 +477,7 @@ module.exports = function(crowi, app) {
|
|
|
}
|
|
}
|
|
|
renderVars.pageUser = user;
|
|
renderVars.pageUser = user;
|
|
|
|
|
|
|
|
- return Page.findListByCreator(user, queryOptions);
|
|
|
|
|
|
|
+ return Page.findListByCreator(user, queryOptions, req.user);
|
|
|
}).then(function(pages) {
|
|
}).then(function(pages) {
|
|
|
|
|
|
|
|
if (pages.length > limit) {
|
|
if (pages.length > limit) {
|