Commit 747cb827e2935a5bdd72add380e807ee39b77d06
1 parent
cc451abb
Exists in
master
and in
29 other branches
ActionItem1003: only display enterprise stuff when enabled
Showing
1 changed file
with
8 additions
and
3 deletions
Show diff stats
app/views/profile_editor/index.rhtml
@@ -41,9 +41,14 @@ | @@ -41,9 +41,14 @@ | ||
41 | 41 | ||
42 | <%= file_manager_button(_('Manage Products and Services'), 'icons-app/products.png', :controller => 'manage_products') if profile.enterprise? && !environment.enabled?('disable_products_for_enterprises') %> | 42 | <%= file_manager_button(_('Manage Products and Services'), 'icons-app/products.png', :controller => 'manage_products') if profile.enterprise? && !environment.enabled?('disable_products_for_enterprises') %> |
43 | 43 | ||
44 | - <%= file_manager_button(__('Enterprise Validation'), 'icons-app/validation.png', :controller => 'enterprise_validation') if profile.is_validation_entity? %> | ||
45 | - | ||
46 | - <%= file_manager_button(__('Favorite Enterprises'), 'icons-app/favorites.png', :controller => 'favorite_enterprises') if profile.person? %> | 44 | + <% if !environment.enabled?('disable_asset_enterprises') %> |
45 | + <% if profile.is_validation_entity? %> | ||
46 | + <%= file_manager_button(__('Enterprise Validation'), 'icons-app/validation.png', :controller => 'enterprise_validation') %> | ||
47 | + <% end %> | ||
48 | + <% if profile.person? %> | ||
49 | + <%= file_manager_button(__('Favorite Enterprises'), 'icons-app/favorites.png', :controller => 'favorite_enterprises') %> | ||
50 | + <% end %> | ||
51 | + <% end %> | ||
47 | 52 | ||
48 | <% if profile.enterprise? %> | 53 | <% if profile.enterprise? %> |
49 | <% if profile.enabled? %> | 54 | <% if profile.enabled? %> |