Skip to content

Commit 0ffc3c2

Browse files
committed
Disabled links for jobs of other users
1 parent f7571bf commit 0ffc3c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/components/jobs/JobsList.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
</td>
318318
{#if !columnsToHide.includes('project')}
319319
<td>
320-
{#if projects && row.project_id !== null}
320+
{#if projects && row.project_id !== null && row.user_email === $page.data.userInfo.email}
321321
<a href={`/projects/${row.project_id}`}>
322322
{projects.find((project) => project.id === row.project_id)?.name}
323323
</a>
@@ -328,7 +328,7 @@
328328
{/if}
329329
{#if !columnsToHide.includes('workflow')}
330330
<td>
331-
{#if workflows && row.workflow_id !== null}
331+
{#if workflows && row.workflow_id !== null && row.user_email === $page.data.userInfo.email}
332332
<a href={`/projects/${row.project_id}/workflows/${row.workflow_id}`}>
333333
{row.workflow_dump?.name}
334334
</a>
@@ -338,7 +338,7 @@
338338
</td>
339339
{/if}
340340
<td>
341-
{#if inputDatasets && row.input_dataset_id !== null}
341+
{#if inputDatasets && row.input_dataset_id !== null && row.user_email === $page.data.userInfo.email}
342342
<a href={`/projects/${row.project_id}/datasets/${row.input_dataset_id}`}>
343343
{row.input_dataset_dump?.name}
344344
</a>
@@ -347,7 +347,7 @@
347347
{/if}
348348
</td>
349349
<td>
350-
{#if outputDatasets && row.output_dataset_id !== null}
350+
{#if outputDatasets && row.output_dataset_id !== null && row.user_email === $page.data.userInfo.email}
351351
<a href={`/projects/${row.project_id}/datasets/${row.output_dataset_id}`}>
352352
{row.output_dataset_dump?.name}
353353
</a>

0 commit comments

Comments
 (0)