We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb819ba commit 7a345ecCopy full SHA for 7a345ec
packages/app/src/app/pages/Dashboard/Sidebar/index.tsx
@@ -81,7 +81,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
81
const teamDataLoaded = dashboard.teams.length > 0 && activeTeamInfo;
82
const showRespositories = !state.environment.isOnPrem;
83
84
- const { isPrimarySpace } = useWorkspaceAuthorization();
+ const { isPrimarySpace, isTeamAdmin } = useWorkspaceAuthorization();
85
const { isFree } = useWorkspaceSubscription();
86
87
const showTemplates = state.activeTeam
@@ -172,7 +172,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
172
path={dashboardUrls.portalVMUsage(activeTeam)}
173
icon="coins"
174
/>
175
- {isFree && (
+ {isFree && isTeamAdmin && (
176
<RowItem
177
name="Upgrade"
178
page="external"
0 commit comments