feat(side-menu): update permissions to include admin role for Git provider access

This commit is contained in:
Mauricio Siu
2025-12-07 02:25:54 -06:00
parent 55a9640e31
commit a9ae39dc94

View File

@@ -333,7 +333,11 @@ const MENU: Menu = {
icon: GitBranch,
// Only enabled for admins and users with access to Git providers
isEnabled: ({ auth }) =>
!!(auth?.role === "owner" || auth?.canAccessToGitProviders),
!!(
auth?.role === "owner" ||
auth?.canAccessToGitProviders ||
auth?.role === "admin"
),
},
{
isSingle: true,