mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-23 17:25:22 +03:00
fix: hide global audit log switch for non admin users
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import AuditLogList from '$lib/components/audit-log-list.svelte';
|
import AuditLogList from '$lib/components/audit-log-list.svelte';
|
||||||
import * as Card from '$lib/components/ui/card';
|
import * as Card from '$lib/components/ui/card';
|
||||||
import { m } from '$lib/paraglide/messages';
|
import { m } from '$lib/paraglide/messages';
|
||||||
|
import userStore from '$lib/stores/user-store';
|
||||||
import { LogsIcon } from 'lucide-svelte';
|
import { LogsIcon } from 'lucide-svelte';
|
||||||
import AuditLogSwitcher from './audit-log-switcher.svelte';
|
import AuditLogSwitcher from './audit-log-switcher.svelte';
|
||||||
|
|
||||||
@@ -13,7 +14,9 @@
|
|||||||
<title>{m.audit_log()}</title>
|
<title>{m.audit_log()}</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<AuditLogSwitcher currentPage="personal" />
|
{#if $userStore?.isAdmin}
|
||||||
|
<AuditLogSwitcher currentPage="personal" />
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Card.Root>
|
<Card.Root>
|
||||||
|
|||||||
Reference in New Issue
Block a user