Update the project blacklist to check for CF base class

pull/6097/head
Oliver Günther 7 years ago
parent 4de6dae5e4
commit d22b37bb35
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      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

Loading…
Cancel
Save