itizawa 5 лет назад
Родитель
Сommit
63ef9f717a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/server/service/file-uploader/aws.js
  2. 1 1
      src/server/service/file-uploader/gcs.js

+ 1 - 1
src/server/service/file-uploader/aws.js

@@ -73,7 +73,7 @@ module.exports = function(crowi) {
   };
   };
 
 
   lib.canRespond = function() {
   lib.canRespond = function() {
-    return this.configManager.getConfig('crowi', 'aws:isEnabledInternalStreamSystem');
+    return !this.configManager.getConfig('crowi', 'aws:isEnabledInternalStreamSystem');
   };
   };
 
 
   lib.respond = async function(res, attachment) {
   lib.respond = async function(res, attachment) {

+ 1 - 1
src/server/service/file-uploader/gcs.js

@@ -51,7 +51,7 @@ module.exports = function(crowi) {
   };
   };
 
 
   lib.canRespond = function() {
   lib.canRespond = function() {
-    return this.configManager.getConfig('crowi', 'gcs:isEnabledInternalStreamSystem');
+    return !this.configManager.getConfig('crowi', 'gcs:isEnabledInternalStreamSystem');
   };
   };
 
 
   lib.respond = async function(res, attachment) {
   lib.respond = async function(res, attachment) {