From 44bc30486a5624ae104a9b28155bfdea190e3ea9 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 31 Oct 2014 14:51:49 -0300 Subject: [PATCH] community_hub: allow creation of hub with parent --- lib/community_hub_plugin.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/community_hub_plugin.rb b/lib/community_hub_plugin.rb index d3e6777..06280ce 100644 --- a/lib/community_hub_plugin.rb +++ b/lib/community_hub_plugin.rb @@ -15,8 +15,7 @@ class CommunityHubPlugin < Noosfero::Plugin def content_types if context.respond_to?(:params) && context.params types = [] - parent_id = context.params[:parent_id] - types << CommunityHubPlugin::Hub if context.profile.community? && !parent_id + types << CommunityHubPlugin::Hub if context.profile.community? types else [CommunityHubPlugin::Hub] -- libgit2 0.21.2