From cdb3ce0e31fad78dbea6ed45cd39fac06d53c8ba Mon Sep 17 00:00:00 2001 From: Rohan Date: Tue, 19 Nov 2024 20:04:09 +0530 Subject: [PATCH] fix: permission checks and rendering for onboarding guide --- frontend/components/dashboard/GetStarted.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/components/dashboard/GetStarted.tsx b/frontend/components/dashboard/GetStarted.tsx index ec67fbee7..471005ec0 100644 --- a/frontend/components/dashboard/GetStarted.tsx +++ b/frontend/components/dashboard/GetStarted.tsx @@ -124,7 +124,8 @@ export const GetStarted = (props: { organisation: OrganisationType }) => { const userCanReadSyncs = userHasPermission( organisation?.role?.permissions, 'Integrations', - 'read' + 'read', + true ) const hasPermissionsForGuide = @@ -229,6 +230,8 @@ export const GetStarted = (props: { organisation: OrganisationType }) => { }, ] + if (!hasPermissionsForGuide) return <> + if (!showGuide) return (