mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
fix: when auth is disabled, the users entity doesn't exist
This commit is contained in:
@@ -33,16 +33,22 @@ export function AuthRoot({ children }) {
|
||||
<AppShell.SidebarLink
|
||||
as={Link}
|
||||
href={app.getAbsolutePath("/data/" + routes.data.entity.list(users_entity))}
|
||||
disabled={!config.auth.enabled}
|
||||
>
|
||||
Users
|
||||
</AppShell.SidebarLink>
|
||||
<AppShell.SidebarLink as={Link} href={routes.auth.roles.list()}>
|
||||
<AppShell.SidebarLink
|
||||
as={Link}
|
||||
href={routes.auth.roles.list()}
|
||||
disabled={!config.auth.enabled}
|
||||
>
|
||||
Roles & Permissions
|
||||
</AppShell.SidebarLink>
|
||||
<AppShell.SidebarLink as={Link} href={routes.auth.strategies()} disabled>
|
||||
Strategies
|
||||
</AppShell.SidebarLink>
|
||||
<AppShell.SidebarLink as={Link} href={routes.auth.settings()}>
|
||||
{/*<AppShell.SidebarLink as={Link} href={routes.auth.settings()}>*/}
|
||||
<AppShell.SidebarLink as={Link} href={app.getSettingsPath(["auth"])}>
|
||||
Settings
|
||||
</AppShell.SidebarLink>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user