yuken 3 лет назад
Родитель
Сommit
48c89fc954
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/app/src/server/routes/apiv3/customize-setting.js

+ 3 - 3
packages/app/src/server/routes/apiv3/customize-setting.js

@@ -689,7 +689,7 @@ module.exports = (crowi) => {
     return res.apiv3({ isDefaultLogo, customizedLogoSrc });
     return res.apiv3({ isDefaultLogo, customizedLogoSrc });
   });
   });
 
 
-  router.put('/customize-logo', csrf, loginRequiredStrictly, adminRequired, validator.logo, apiV3FormValidator, async(req, res) => {
+  router.put('/customize-logo', loginRequiredStrictly, adminRequired, validator.logo, apiV3FormValidator, async(req, res) => {
 
 
     const {
     const {
       isDefaultLogo, customizedLogoSrc,
       isDefaultLogo, customizedLogoSrc,
@@ -715,7 +715,7 @@ module.exports = (crowi) => {
   });
   });
 
 
   router.post('/upload-brand-logo', uploads.single('file'), loginRequiredStrictly,
   router.post('/upload-brand-logo', uploads.single('file'), loginRequiredStrictly,
-    adminRequired, csrf, validator.logo, apiV3FormValidator, async(req, res) => {
+    adminRequired, validator.logo, apiV3FormValidator, async(req, res) => {
 
 
       if (req.file == null) {
       if (req.file == null) {
         return res.apiv3Err(new ErrorV3('File error.', 'upload-brand-logo-failed'));
         return res.apiv3Err(new ErrorV3('File error.', 'upload-brand-logo-failed'));
@@ -756,7 +756,7 @@ module.exports = (crowi) => {
       return res.apiv3({ attachment });
       return res.apiv3({ attachment });
     });
     });
 
 
-  router.delete('/delete-brand-logo', csrf, loginRequiredStrictly, adminRequired, async(req, res) => {
+  router.delete('/delete-brand-logo', loginRequiredStrictly, adminRequired, async(req, res) => {
 
 
     const attachments = await Attachment.find({ attachmentType: AttachmentType.BRAND_LOGO });
     const attachments = await Attachment.find({ attachmentType: AttachmentType.BRAND_LOGO });