Commit 0f8ab7f8486d51d80d1068aea4de23bb1f415c13
1 parent
6aaa426e
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
community_dashboard : fix content_types return if context is not cms controller
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
plugins/community_hub/lib/community_hub_plugin.rb
... | ... | @@ -13,6 +13,7 @@ class CommunityHubPlugin < Noosfero::Plugin |
13 | 13 | end |
14 | 14 | |
15 | 15 | def content_types |
16 | + return [] if !context.kind_of?(CmsController) | |
16 | 17 | if context.respond_to?(:params) && context.params |
17 | 18 | types = [] |
18 | 19 | types << CommunityHubPlugin::Hub if context.profile.community? | ... | ... |