From 2aa22bdbc432a3c528c531770049634b65385d21 Mon Sep 17 00:00:00 2001 From: Paul Cowan Date: Tue, 6 Jun 2023 18:13:59 +0100 Subject: [PATCH] check accessRole --- .../src/components/projects/ProjectsTable.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/parodos/src/components/projects/ProjectsTable.tsx b/plugins/parodos/src/components/projects/ProjectsTable.tsx index 84329d0d..15ba46a9 100644 --- a/plugins/parodos/src/components/projects/ProjectsTable.tsx +++ b/plugins/parodos/src/components/projects/ProjectsTable.tsx @@ -157,12 +157,14 @@ export function ProjectsTable({ projects }: { projects: Project[] }) { } else if (columnDef.field === 'view') { return ( - - VIEW - + {rowData.accessRole && ( + + VIEW + + )} ); }