Spaces:
Paused
Paused
fix(tools): revert admin flag
Browse files
src/routes/tools/[toolId]/+page.svelte
CHANGED
|
@@ -163,7 +163,7 @@
|
|
| 163 |
>
|
| 164 |
{/if}
|
| 165 |
{/if}
|
| 166 |
-
{#if
|
| 167 |
<form method="POST" action="?/delete" use:enhance>
|
| 168 |
<button type="submit" class="flex items-center text-red-600 underline">
|
| 169 |
<CarbonTrash class="mr-1.5 inline text-xs" />Delete</button
|
|
|
|
| 163 |
>
|
| 164 |
{/if}
|
| 165 |
{/if}
|
| 166 |
+
{#if data?.user?.isAdmin}
|
| 167 |
<form method="POST" action="?/delete" use:enhance>
|
| 168 |
<button type="submit" class="flex items-center text-red-600 underline">
|
| 169 |
<CarbonTrash class="mr-1.5 inline text-xs" />Delete</button
|