fix: use new admin/mod getters for post page, close #663
This commit is contained in:
1 file changed
+2
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user