Commit 85313863fe935125608c7722b3b544cfd0569d9e

Authored by Rodrigo Souto
1 parent 2b82eb65
Exists in staging

products-plugin: do not assume context has a profile

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
plugins/products/lib/products_plugin/base.rb
... ... @@ -30,7 +30,7 @@ module ProductsPlugin
30 30 end
31 31  
32 32 def content_types
33   - [EnterpriseHomepage] if context.profile.enterprise?
  33 + [EnterpriseHomepage] if context.kind_of?(Enterprise)
34 34 end
35 35  
36 36 end
... ...