Ver Fonte

fix to Strictly for limit

reiji-h há 2 anos atrás
pai
commit
5156844ab4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      apps/app/src/server/routes/apiv3/attachment.js

+ 1 - 1
apps/app/src/server/routes/apiv3/attachment.js

@@ -215,7 +215,7 @@ module.exports = (crowi) => {
    * @apiName AddAttachment
    * @apiName AddAttachment
    * @apiGroup Attachment
    * @apiGroup Attachment
    */
    */
-  router.get('/limit', accessTokenParser, loginRequired, validator.retrieveFileLimit, apiV3FormValidator, async(req, res) => {
+  router.get('/limit', accessTokenParser, loginRequiredStrictly, validator.retrieveFileLimit, apiV3FormValidator, async(req, res) => {
     const { fileUploadService } = crowi;
     const { fileUploadService } = crowi;
     const fileSize = Number(req.query.fileSize);
     const fileSize = Number(req.query.fileSize);
     try {
     try {