fix: add condition to show create project button

This commit is contained in:
Rahadi Jalu
2025-01-22 11:23:18 +07:00
parent 026e1bece6
commit a2e9ea2986

View File

@@ -87,9 +87,12 @@ export const ShowProjects = () => {
Create and manage your projects
</CardDescription>
</CardHeader>
<div className="">
<HandleProject />
</div>
{(auth?.rol === "admin" || user?.canCreateProjects) && (
<div className="">
<HandleProject />
</div>
)}
</div>
<CardContent className="space-y-2 py-8 border-t gap-4 flex flex-col min-h-[60vh]">