Commit 6aaa426ec1dcc6955cac67914f408e39eec49ccd

Authored by Victor Costa
1 parent a0238807

community_hub: allow creation of hub with parent

plugins/community_hub/lib/community_hub_plugin.rb
... ... @@ -15,8 +15,7 @@ class CommunityHubPlugin < Noosfero::Plugin
15 15 def content_types
16 16 if context.respond_to?(:params) && context.params
17 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 19 types
21 20 else
22 21 [CommunityHubPlugin::Hub]
... ...