FIX: don't raise error if s3 set via global setting

FIX: don’t raise error if s3 set via global setting

diff --git a/lib/site_settings/validations.rb b/lib/site_settings/validations.rb
index eaab98f..327aa7b 100644
--- a/lib/site_settings/validations.rb
+++ b/lib/site_settings/validations.rb
@@ -54,7 +54,7 @@ module SiteSettings::Validations
   end
 
   def validate_enable_s3_inventory(new_val)
-    validate_error :enable_s3_uploads_is_required if new_val == "t" && !SiteSetting.enable_s3_uploads?
+    validate_error :enable_s3_uploads_is_required if new_val == "t" && !SiteSetting.Upload.enable_s3_uploads
   end
 
   def validate_backup_location(new_val)

GitHub sha: 565b524b