fix: add validation to prevent overwrite user

This commit is contained in:
Mauricio Siu
2024-09-01 19:12:26 -06:00
parent 1650e1bb74
commit 879311c332
6 changed files with 22 additions and 25 deletions
@@ -95,6 +95,16 @@ export const SettingsLayout = ({ children }: Props) => {
},
]
: []),
...(user?.canAccessToGitProviders
? [
{
title: "Git",
label: "",
icon: GitBranch,
href: "/dashboard/settings/git-providers",
},
]
: []),
]}
/>
</div>