Doc: Add a figure caption in "Downloading data".
[arvados.git] / apps / workbench / lib / config_validators.rb
index 953b392e37a57f0c2da774bd99e02b417eda1e1c..804e3e397015bd9706d978c3067f805645a88aeb 100644 (file)
@@ -17,4 +17,10 @@ module ConfigValidators
     end
     return false
   end
+
+  def self.validate_download_config
+    if Rails.configuration.Services.WebDAV.ExternalURL == URI("") and Rails.configuration.Services.WebDAVDownload.ExternalURL == URI("")
+      raise "Keep-web service must be configured in Services.WebDAV and/or Services.WebDAVDownload"
+    end
+  end
 end