nsarrazin HF Staff commited on
Commit
8159477
·
unverified ·
1 Parent(s): 2a28d2b

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 !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
 
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