Commit ad8c4f534097cc0f3813d80d69bc7247abdb2137
1 parent
9f22ba3e
Exists in
staging
and in
42 other branches
Only show public enterprises/communities to manage
(ActionItem3134)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -1100,12 +1100,12 @@ module ApplicationHelper |
1100 | 1100 | |
1101 | 1101 | def manage_enterprises |
1102 | 1102 | return unless user && user.environment.enabled?(:display_my_enterprises_on_user_menu) |
1103 | - manage_link(user.enterprises, :enterprises) | |
1103 | + manage_link(user.enterprises.visible, :enterprises) | |
1104 | 1104 | end |
1105 | 1105 | |
1106 | 1106 | def manage_communities |
1107 | 1107 | return unless user && user.environment.enabled?(:display_my_communities_on_user_menu) |
1108 | - administered_communities = user.communities.more_popular.select {|c| c.admins.include? user} | |
1108 | + administered_communities = user.communities.visible.more_popular.select {|c| c.admins.include? user} | |
1109 | 1109 | manage_link(administered_communities, :communities) |
1110 | 1110 | end |
1111 | 1111 | ... | ... |