Commit 68a0e942b005caaa573508a18a7053edf2e47196
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'AI3074-community_dashboard' into stable
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
plugins/community_hub/lib/community_hub_plugin.rb
@@ -15,8 +15,7 @@ class CommunityHubPlugin < Noosfero::Plugin | @@ -15,8 +15,7 @@ class CommunityHubPlugin < Noosfero::Plugin | ||
15 | def content_types | 15 | def content_types |
16 | if context.respond_to?(:params) && context.params | 16 | if context.respond_to?(:params) && context.params |
17 | types = [] | 17 | types = [] |
18 | - parent_id = context.params[:parent_id] | ||
19 | - types << CommunityHubPlugin::Hub if context.profile.community? && !parent_id | 18 | + types << CommunityHubPlugin::Hub if context.profile.community? |
20 | types | 19 | types |
21 | else | 20 | else |
22 | [CommunityHubPlugin::Hub] | 21 | [CommunityHubPlugin::Hub] |