fix: use new admin/mod getters for post page, close #663

This commit is contained in:
Xylight committed 2025-09-28 13:54:47 -07:00
1 parent 8a217198ea
commit 3fda9d9f2e
1 file changed
+2 -1
+2 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { site } from '$lib/api/client.svelte'
import { profile } from '$lib/app/auth.svelte'
import { t } from '$lib/app/i18n'
import { Header, Tabs } from '$lib/ui/layout'
@@ -9,7 +10,7 @@
<Header pageHeader>
{$t('nav.create.label')}
{#snippet extended()}
{#if !site || !site.data?.site_view.local_site.community_creation_admin_only}
{#if !site || !(site.data?.site_view.local_site.community_creation_admin_only && !profile.isAdmin)}
<Tabs
margin={false}
style="subpage"