Commit 68a0e942b005caaa573508a18a7053edf2e47196

Authored by Victor Costa
2 parents 71d7e8fa 6aaa426e

Merge branch 'AI3074-community_dashboard' into stable

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]