Skip to content

Commit e1c7961

Browse files
Xaohssvenvandescheur
authored andcommitted
🐛 - fix: fixed the button being available for archivaris
1 parent b03a1de commit e1c7961

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: frontend/src/pages/landing/Landing.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
canMarkAsReadyToReview,
2020
canMarkListAsFinal,
2121
canReviewDestructionList,
22+
canStartDestructionList,
2223
canTriggerDestruction,
2324
canUpdateDestructionList,
2425
canViewDestructionList,
@@ -240,6 +241,7 @@ export const Landing = () => {
240241
),
241242
size: "xs",
242243
variant: "primary",
244+
disabled: !canStartDestructionList(user),
243245
onClick: () => navigate("/destruction-lists/create"),
244246
},
245247
],

0 commit comments

Comments
 (0)