Skip to content

Commit 14c1a48

Browse files
committed
fix: admin-only button was shown to users
1 parent 2f93cce commit 14c1a48

File tree

1 file changed

+1
-1
lines changed
  • apps/frontend/src/pages/app/extensions

1 file changed

+1
-1
lines changed

apps/frontend/src/pages/app/extensions/[id].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</div>
6060
<div class="flex items-center gap-2 max-md:flex-col">
6161
<ElementsButton
62-
v-if="data.extension.status == 'approved'"
62+
v-if="user?.admin && data.extension.status == 'approved'"
6363
@click="modalOpen.adminReject = true"
6464
class="max-md:w-full"
6565
>

0 commit comments

Comments
 (0)