forked from open-webui/open-webui
feat: multi-user support w/ RBAC
This commit is contained in:
parent
31e38df0a5
commit
921eef03b3
21 changed files with 1815 additions and 66 deletions
12
src/routes/(app)/+layout.svelte
Normal file
12
src/routes/(app)/+layout.svelte
Normal file
|
@ -0,0 +1,12 @@
|
|||
<script>
|
||||
import { config, user } from '$lib/stores';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
if ($config && $config.auth && $user === undefined) {
|
||||
goto('/auth');
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if $config !== undefined}
|
||||
<slot />
|
||||
{/if}
|
1855
src/routes/(app)/+page.svelte
Normal file
1855
src/routes/(app)/+page.svelte
Normal file
File diff suppressed because it is too large
Load diff
0
src/routes/(app)/c/[id]/+page.svelte
Normal file
0
src/routes/(app)/c/[id]/+page.svelte
Normal file
Loading…
Add table
Add a link
Reference in a new issue