Commit 6aaa426ec1dcc6955cac67914f408e39eec49ccd
1 parent
a0238807
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
community_hub: allow creation of hub with parent
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 | 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] | ... | ... |