Show sidebar only for system admin and hide reports centre
This commit is contained in:
@@ -105,15 +105,6 @@ def build_workspace_cards(roles: Iterable[str] | None, permissions: Iterable[str
|
||||
priority=70,
|
||||
))
|
||||
|
||||
# Reports centre is available as a role-aware workspace for every authenticated user.
|
||||
cards.append(WorkspaceCard(
|
||||
code="reports",
|
||||
title="Reports Centre",
|
||||
description="Role-aware reports grouped by work, clients, billing, HR, system and audit areas.",
|
||||
url="/reports",
|
||||
badge="Reports",
|
||||
priority=90,
|
||||
))
|
||||
|
||||
return sorted(cards, key=lambda card: card.priority)
|
||||
|
||||
@@ -134,6 +125,4 @@ def current_workspace_code(current_path: str | None) -> str:
|
||||
return "client"
|
||||
if path.startswith("/consultant"):
|
||||
return "consultant"
|
||||
if path.startswith("/reports"):
|
||||
return "reports"
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user