diff --git a/dashboard/src/routes/apps/+page.svelte b/dashboard/src/routes/apps/+page.svelte index cbfd75a..96b4dfe 100644 --- a/dashboard/src/routes/apps/+page.svelte +++ b/dashboard/src/routes/apps/+page.svelte @@ -2,6 +2,11 @@ import { base } from '$app/paths'; import { api, ApiError, type App } from '$lib/api'; import { slugify, SLUG_MAX } from '$lib/slugify'; + import { canCreateApp } from '$lib/capabilities'; + import { currentUser } from '$lib/auth'; + + const me = $derived($currentUser); + const canCreate = $derived(canCreateApp(me)); let apps = $state(null); let listError = $state(null); @@ -99,18 +104,20 @@
- {#if showCreate} + {#if showCreate && canCreate}
submitCreate(e)}>
{/if}
- {:else if activeTab === 'settings'} + {:else if activeTab === 'settings' && canAdmin}

Settings

saveSettings(e)}>