mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Revert "Revert "FIX: Don't allow people to clear the upload bucket while it's enabled""
This reverts commit d4fc76b335d012275b06b7ce80d0c1b98f9db33d.
This commit is contained in:
@ -143,6 +143,8 @@ module SiteSettings::Validations
|
||||
|
||||
def validate_s3_upload_bucket(new_val)
|
||||
validate_bucket_setting("s3_upload_bucket", new_val, SiteSetting.s3_backup_bucket)
|
||||
|
||||
validate_error(:s3_upload_bucket_is_required, setting_name: 's3_upload_bucket') if new_val.blank? && SiteSetting.enable_s3_uploads?
|
||||
end
|
||||
|
||||
def validate_s3_backup_bucket(new_val)
|
||||
|
Reference in New Issue
Block a user