Browse Source

adjust spaces to look easily

kaoritokashiki 5 years ago
parent
commit
6c3d208506
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/server/routes/apiv3/attachment.js

+ 2 - 1
src/server/routes/apiv3/attachment.js

@@ -20,12 +20,13 @@ module.exports = (crowi) => {
 
     try {
       const pageId = req.query.page;
+
       // check whether accessible
       const isAccessible = await Page.isAccessiblePageByViewer(pageId, req.user);
-
       if (!isAccessible) {
         return res.json(ApiResponse.error('Current user is not accessible to this page.'));
       }
+
       const attachments = await Attachment.find({ page: pageId });
       return res.apiv3({ attachments });
     }