Akten, Vorgänge und Fristen an einem Ort. Die erste Lieferung organisiert und verfolgt.
+ {bootstrap === undefined ? null : bootstrap?.available ? (
+
Beispieldaten
diff --git a/frontend/src/pages/Shell.jsx b/frontend/src/pages/Shell.jsx
index 01f616c..2c462b6 100644
--- a/frontend/src/pages/Shell.jsx
+++ b/frontend/src/pages/Shell.jsx
@@ -10,10 +10,16 @@ const NAV = [
{ to: "/sources", label: "Quellen", icon: "sources" },
];
+function navItems(session) {
+ if (!session?.account?.is_superadmin) return NAV;
+ return [...NAV, { to: "/users", label: "Nutzer", icon: "users" }];
+}
+
export function Shell() {
const { session, logout } = useContext(SessionContext);
const navigate = useNavigate();
const [query, setQuery] = useState("");
+ const items = navItems(session);
function onSearch(event) {
event.preventDefault();
@@ -30,7 +36,7 @@ export function Shell() {
Tsumugu