diff --git a/app/views/admin/education/program/role/people/_list.html.erb b/app/views/admin/education/program/role/people/_list.html.erb index e9995a524bd905cf62a8a537cd1b58162b5b3373..47f9942044a4a5e52a86f5e6987bc189148f61fa 100644 --- a/app/views/admin/education/program/role/people/_list.html.erb +++ b/app/views/admin/education/program/role/people/_list.html.erb @@ -11,7 +11,9 @@ <% involvements.each do |involvement| %> <tr class="handle" data-id="<%= involvement.id %>"> <td class="ps-0"> - <%= involvement %> + <%= link_to_if can?(:read, involvement.person), + involvement.person, + [:admin, involvement.person] %> </td> <td><%= involvement.description %></td> <td class="text-end pe-0"> diff --git a/app/views/admin/education/school/role/people/_list.html.erb b/app/views/admin/education/school/role/people/_list.html.erb index 5f10eb42cbab4105f2846d69ae881574bedaba5a..b8de0cf1946e0f347c4d8f34304dbcb60af28adc 100644 --- a/app/views/admin/education/school/role/people/_list.html.erb +++ b/app/views/admin/education/school/role/people/_list.html.erb @@ -11,7 +11,9 @@ <% involvements.each do |involvement| %> <tr class="handle" data-id="<%= involvement.id %>"> <td class="ps-0"> - <%= involvement %> + <%= link_to_if can?(:read, involvement.person), + involvement.person, + [:admin, involvement.person] %> </td> <td><%= involvement.description %></td> <td class="text-end pe-0">