From 550aa0bfe304f0afc65c5933f668cc73ab1c7659 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Fri, 28 Jan 2022 16:38:50 +0100
Subject: [PATCH] show link

---
 app/views/admin/education/program/role/people/_list.html.erb | 4 +++-
 app/views/admin/education/school/role/people/_list.html.erb  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

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 e9995a524..47f994204 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 5f10eb42c..b8de0cf19 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">
-- 
GitLab