feat(auth): implement role-based access control and user management features
This commit is contained in:
@@ -34,6 +34,9 @@ export default async function Navigation() {
|
||||
<Link href="/recipes" style={linkStyle}>📖 Recept</Link>
|
||||
<Link href="/baslager" style={linkStyle}>🏪 Baslager</Link>
|
||||
<Link href="/admin/products" style={linkStyle}>⚙️ Admin</Link>
|
||||
{(session?.user as any)?.role === 'admin' && (
|
||||
<Link href="/admin/users" style={linkStyle}>👥 Användare</Link>
|
||||
)}
|
||||
<Link href="/import" style={linkStyle}>📥 Importera</Link>
|
||||
<Link href="/matplan" style={linkStyle}>📅 Matplan</Link>
|
||||
<span style={{ flex: 1 }} />
|
||||
|
||||
Reference in New Issue
Block a user