From a2e9ea2986a258b0043485a6d5c55d24761cf39b Mon Sep 17 00:00:00 2001 From: Rahadi Jalu Date: Wed, 22 Jan 2025 11:23:18 +0700 Subject: [PATCH] fix: add condition to show create project button --- apps/dokploy/components/dashboard/projects/show.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/dokploy/components/dashboard/projects/show.tsx b/apps/dokploy/components/dashboard/projects/show.tsx index c4b2f672..afeabf30 100644 --- a/apps/dokploy/components/dashboard/projects/show.tsx +++ b/apps/dokploy/components/dashboard/projects/show.tsx @@ -87,9 +87,12 @@ export const ShowProjects = () => { Create and manage your projects -
- -
+ + {(auth?.rol === "admin" || user?.canCreateProjects) && ( +
+ +
+ )}