We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18b78d7 commit d5f113dCopy full SHA for d5f113d
frontend/src/App.tsx
@@ -28,6 +28,7 @@ import { useAsync } from "react-use";
28
29
import "./App.css";
30
import { User, getOIDCInfo, whoAmI } from "./lib/api/auth";
31
+import { canStartDestructionList } from "./lib/auth/permissions";
32
import OidcConfigContext, {
33
OidcConfigContextType,
34
} from "./lib/contexts/OidcConfigContext";
@@ -84,6 +85,7 @@ function App() {
84
85
{
86
children: <Solid.DocumentPlusIcon />,
87
title: "Vernietigingslijst opstellen",
88
+ hidden: user ? !canStartDestructionList(user) : true,
89
// size: "xl",
90
onClick: () => navigate("/destruction-lists/create"),
91
},
0 commit comments