Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #158 from parodos-dev/pc/hide-view-link
Browse files Browse the repository at this point in the history
don't show view link in projects table without the correct accessRole.
  • Loading branch information
RichardW98 authored Jun 6, 2023
2 parents 80e54db + 2aa22bd commit b032797
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions plugins/parodos/src/components/projects/ProjectsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,14 @@ export function ProjectsTable({ projects }: { projects: Project[] }) {
} else if (columnDef.field === 'view') {
return (
<TableCell>
<LinkButton
color="primary"
to={`${pluginRoutePrefix}/workflows?project=${rowData.id}`}
>
VIEW
</LinkButton>
{rowData.accessRole && (
<LinkButton
color="primary"
to={`${pluginRoutePrefix}/workflows?project=${rowData.id}`}
>
VIEW
</LinkButton>
)}
</TableCell>
);
}
Expand Down

0 comments on commit b032797

Please sign in to comment.