diff --git a/app/models/service_template.rb b/app/models/service_template.rb index d5cb561c271..38068341c64 100644 --- a/app/models/service_template.rb +++ b/app/models/service_template.rb @@ -80,7 +80,7 @@ class ServiceTemplate < ApplicationRecord scope :without_service_template_catalog_id, -> { where(:service_template_catalog_id => nil) } scope :with_existent_service_template_catalog_id, -> { where.not(:service_template_catalog_id => nil) } scope :displayed, -> { where(:display => true) } - scope :public_service_templates, -> { where.not(:internal => true) } + scope :public_service_templates, -> { where(:internal => [false, nil]) } def self.catalog_item_types ci_types = Set.new(Rbac.filtered(ExtManagementSystem.all).flat_map(&:supported_catalog_types))