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