Skip to content

Commit

Permalink
fix: checklist creation
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 27, 2024
1 parent 25d5b8d commit 1b100b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/frontend/pages/evaluations/checklists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ export default function Checklists() {
const { user } = useUser()
const [checklistModal, setChecklistModal] = useState(false)

console.log(user)

return (
<Container>
<ChecklistModal
Expand All @@ -176,7 +178,7 @@ export default function Checklists() {
<Title>Checklists</Title>
</Group>

{hasAccess(user, "checklists", "create") && (
{hasAccess(user.role, "checklists", "create") && (
<Button
leftSection={<IconPlus size={12} />}
variant="default"
Expand Down

0 comments on commit 1b100b5

Please sign in to comment.