mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:27:16 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user