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">
|
<script lang="ts">
|
||||||
import { site } from '$lib/api/client.svelte'
|
import { site } from '$lib/api/client.svelte'
|
||||||
|
import { profile } from '$lib/app/auth.svelte'
|
||||||
import { t } from '$lib/app/i18n'
|
import { t } from '$lib/app/i18n'
|
||||||
import { Header, Tabs } from '$lib/ui/layout'
|
import { Header, Tabs } from '$lib/ui/layout'
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@
|
|||||||
<Header pageHeader>
|
<Header pageHeader>
|
||||||
{$t('nav.create.label')}
|
{$t('nav.create.label')}
|
||||||
{#snippet extended()}
|
{#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
|
<Tabs
|
||||||
margin={false}
|
margin={false}
|
||||||
style="subpage"
|
style="subpage"
|
||||||
|
|||||||
Reference in new issue
Block a user