From 96c2db0e4b276ad598d2e09f840842f8adc840e6 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 28 May 2009 18:01:03 -0300 Subject: [PATCH] ActionItem1044: don't display enterprises if disabled in the system --- app/views/profile/_person.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/profile/_person.rhtml b/app/views/profile/_person.rhtml index 767262c..0b68af3 100644 --- a/app/views/profile/_person.rhtml +++ b/app/views/profile/_person.rhtml @@ -26,7 +26,7 @@ <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%> - <% if !profile.enterprises.empty? %> + <% if !environment.enabled?('disable_asset_enterprises') && !profile.enterprises.empty? %> <%= __('Enterprises') %> -- libgit2 0.21.2