diff --git a/ui/src/routes/surveys/[sid]/responses/index.svelte b/ui/src/routes/surveys/[sid]/responses/index.svelte index f90105f..6414f38 100644 --- a/ui/src/routes/surveys/[sid]/responses/index.svelte +++ b/ui/src/routes/surveys/[sid]/responses/index.svelte @@ -13,20 +13,26 @@ {#await surveyP then survey} - goto(`surveys/${survey.id}/admin`)} - /> + {#if $user && $user.is_admin} + + goto(`surveys/${survey.id}/admin`)} + /> + {/if}

< @@ -36,6 +42,10 @@

+ {#if $user && $user.is_admin && edit} + edit = false} /> + {/if} + {#await getQuestions(survey.id)}