From 93f690b5c1410df7b04a989a507216985d78803e Mon Sep 17 00:00:00 2001 From: takahashim Date: Sun, 16 Jan 2022 02:02:13 +0900 Subject: [PATCH] remove fix of #18 and #101 --- app/uploaders/decidim/application_uploader.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/uploaders/decidim/application_uploader.rb b/app/uploaders/decidim/application_uploader.rb index 1a75fa7ce1..132e0e62b5 100644 --- a/app/uploaders/decidim/application_uploader.rb +++ b/app/uploaders/decidim/application_uploader.rb @@ -61,13 +61,6 @@ def validate_inside_organization return if model.is_a?(Decidim::Organization) return if model.respond_to?(:organization) && model.organization.is_a?(Decidim::Organization) - # HACK: Temporary fix for https://github.com/decidim/decidim/issues/6720 - # If this is fixed by decidim, this file (application_uploader.rb) - # should be deleted to keep in sync with upstream! - return if model.class.to_s == "decidim/hero_homepage_content_block" - # Fix for https://github.com/codeforjapan/decidim-cfj/issues/101 - return if model.nil? - raise CarrierWave::IntegrityError, I18n.t("carrierwave.errors.not_inside_organization") end end