diff --git a/app/controllers/profile_admin/enterprise_editor_controller.rb b/app/controllers/profile_admin/enterprise_editor_controller.rb index 1a63ecc..2188408 100644 --- a/app/controllers/profile_admin/enterprise_editor_controller.rb +++ b/app/controllers/profile_admin/enterprise_editor_controller.rb @@ -2,8 +2,8 @@ class EnterpriseEditorController < ProfileAdminController before_filter :login_required, :check_enterprise - protect [:edit, :update], :edit_profile, :profile - protect [:destroy], :destroy_profile, :profile + protect [:edit, :update], 'edit_profile', :profile + protect [:destroy], 'destroy_profile', :profile needs_profile diff --git a/app/models/enterprises_block.rb b/app/models/enterprises_block.rb index 2f8f9d0..386f8a7 100644 --- a/app/models/enterprises_block.rb +++ b/app/models/enterprises_block.rb @@ -7,7 +7,7 @@ class EnterprisesBlock < Design::Block Enterprise.find(:all).map do |p| content_tag(:li, content_tag(:span, - link_to( p.name, :profile => p.identifier) + link_to_homepage( p.name, p.identifier) ) ) end.join("\n"), diff --git a/app/models/list_block.rb b/app/models/list_block.rb index 625740a..bbbfe4e 100644 --- a/app/models/list_block.rb +++ b/app/models/list_block.rb @@ -10,7 +10,7 @@ class ListBlock < Design::Block 'li', content_tag( 'span', - link_to( p.name, :profile => p.identifier) + link_to_homepage( p.name, p.identifier) )) end.join("\n"), :class => 'people_list_block' -- libgit2 0.21.2