diff --git a/app/views/admin/university/alumni/show.html.erb b/app/views/admin/university/alumni/show.html.erb index 1fc61fa85d1d269b6483be35b905b351707c69e5..22ceb9fe5559597262e38e89aeebed86d23083da 100644 --- a/app/views/admin/university/alumni/show.html.erb +++ b/app/views/admin/university/alumni/show.html.erb @@ -27,7 +27,7 @@ <% @alumnus.experiences.ordered.each do |experience| %> <% organization = experience.organization %> <li> - <%= link_to_if can?('read', organization), organization, [:admin, organization] %> + <%= link_to_if can?(:read, organization), organization, [:admin, organization] %> <%= "(#{experience.from_year} - #{experience.to_year.present? ? experience.to_year : t('today')})" %> </li> <% end %> diff --git a/app/views/admin/university/organizations/show.html.erb b/app/views/admin/university/organizations/show.html.erb index b5bff7ae68f40985e670a0e7583c5e43ea794c52..c48ddd06db63692ca7d0b6b20d589ff64750bf58 100644 --- a/app/views/admin/university/organizations/show.html.erb +++ b/app/views/admin/university/organizations/show.html.erb @@ -131,8 +131,8 @@ path = admin_university_alumnus_path(alumnus) %> <tr> - <td><%= link_to alumnus.last_name, path %></td> - <td><%= link_to alumnus.first_name, path %></td> + <td><%= link_to_if can?(:read, alumnus), alumnus.last_name, path %></td> + <td><%= link_to_if can?(:read, alumnus), alumnus.first_name, path %></td> <td> <%= "#{experience.from_year} - #{experience.to_year.present? ? experience.to_year : t('today')}" %> </td>