FIX: Do not mark badge image uploads as secure (#13193)

* FIX: Do not mark badge image uploads as secure

We do not need badge_image upload types to be marked as secure.
Post migration is the same as
https://github.com/discourse/discourse/pull/12081.

See
https://meta.discourse.org/t/secure-media-uploads/140017/122?u=martin
This commit is contained in:
Martin Brennan
2021-05-28 12:35:52 +10:00
committed by GitHub
parent 964da21817
commit 501de809da
4 changed files with 43 additions and 1 deletions

View File

@ -25,6 +25,12 @@ RSpec.describe UploadSecurity do
end
context "when uploading in public context" do
describe "for a public type badge_image" do
let(:type) { 'badge_image' }
it "returns false" do
expect(subject.should_be_secure?).to eq(false)
end
end
describe "for a public type group_flair" do
let(:type) { 'group_flair' }
it "returns false" do