From d22b37bb35a37184f9baed265350bd9d52d2e5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 5 Jan 2018 08:25:00 +0100 Subject: [PATCH] Update the project blacklist to check for CF base class --- app/helpers/projects_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 451e07ef9a..471894fad5 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -133,9 +133,9 @@ module ProjectsHelper def blacklisted_project_filter?(filter) blacklist = [Queries::Projects::Filters::AncestorFilter] - blacklist << Queries::Projects::Filters::CustomFieldFilter unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) + blacklist << Queries::Filters::Shared::CustomFields::Base unless EnterpriseToken.allows_to?(:custom_fields_in_projects_list) - blacklist.include?(filter.class) + blacklist.detect { |clazz| filter.is_a? clazz } end def no_projects_result_box_params