feat: multi-user support w/ RBAC
This commit is contained in:
@@ -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}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user