mirror of
https://github.com/System-End/scraps.git
synced 2026-04-19 23:22:54 +00:00
Update Navbar.svelte
This commit is contained in:
parent
a79c27c838
commit
5a7087031a
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@
|
|||
let currentPath = $derived(page.url.pathname);
|
||||
let isHomePage = $derived(currentPath === '/');
|
||||
let isLoggedIn = $derived(user !== null);
|
||||
let isReviewer = $derived(user?.role === 'admin' || user?.role === 'reviewer');
|
||||
let isReviewer = $derived(user?.role === 'admin' || user?.role === 'reviewer' || user?.role === 'creator');
|
||||
let isAdminOnly = $derived(user?.role === 'admin');
|
||||
let isInAdminSection = $derived(currentPath.startsWith('/admin'));
|
||||
let dashboardMoreActive = $derived(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue