Commit 96c2db0e4b276ad598d2e09f840842f8adc840e6

Authored by Antonio Terceiro
1 parent aa6bc0bd

ActionItem1044: don't display enterprises if disabled in the system

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/profile/_person.rhtml
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%> 26 <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%>
27 27
28 28
29 - <% if !profile.enterprises.empty? %> 29 + <% if !environment.enabled?('disable_asset_enterprises') && !profile.enterprises.empty? %>
30 <tr> 30 <tr>
31 <th colspan='2'><%= __('Enterprises') %></th> 31 <th colspan='2'><%= __('Enterprises') %></th>
32 </tr> 32 </tr>