itizawa 5 лет назад
Родитель
Сommit
d93d1f63eb

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

@@ -73,8 +73,7 @@ module.exports = function(crowi) {
   };
 
   lib.canRespond = function() {
-    // TODO retrieve bool by getConfig
-    return true;
+    return this.configManager.getConfig('crowi', 'app:useSignedUrl') || false;
   };
 
   lib.respond = async function(res, attachment) {

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

@@ -51,8 +51,7 @@ module.exports = function(crowi) {
   };
 
   lib.canRespond = function() {
-    // TODO retrieve bool by getConfig
-    return true;
+    return this.configManager.getConfig('crowi', 'app:useSignedUrl') || false;
   };
 
   lib.respond = async function(res, attachment) {