Skip to content

Commit

Permalink
fix: permission checks and rendering for onboarding guide
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi committed Nov 19, 2024
1 parent b02b72a commit cdb3ce0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/components/dashboard/GetStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export const GetStarted = (props: { organisation: OrganisationType }) => {
const userCanReadSyncs = userHasPermission(
organisation?.role?.permissions,
'Integrations',
'read'
'read',
true
)

const hasPermissionsForGuide =
Expand Down Expand Up @@ -229,6 +230,8 @@ export const GetStarted = (props: { organisation: OrganisationType }) => {
},
]

if (!hasPermissionsForGuide) return <></>

if (!showGuide)
return (
<div className="flex justify-end">
Expand Down

0 comments on commit cdb3ce0

Please sign in to comment.