mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
Revert "FIX: Don't allow people to clear the upload bucket while it's enabled"
This reverts commit 4bb8db024c247f20af9245723ebea4c474eeb16a.
This commit is contained in:
@ -103,15 +103,6 @@ describe SiteSettings::Validations do
|
||||
SiteSetting.s3_backup_bucket = "my-awesome-bucket/foo"
|
||||
expect { validate("my-awesome-bucket/foo/uploads") }.to raise_error(Discourse::InvalidParameters, error_message)
|
||||
end
|
||||
|
||||
it "cannot be made blank unless the setting is false" do
|
||||
SiteSetting.s3_backup_bucket = "really-real-cool-bucket"
|
||||
SiteSetting.enable_s3_uploads = true
|
||||
|
||||
expect { validate("") }.to raise_error(Discourse::InvalidParameters)
|
||||
SiteSetting.enable_s3_uploads = false
|
||||
validate("")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user