File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
apps/webapp/app/components/navigation Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export function OrganizationSettingsSideMenu({
42
42
const { isManagedCloud } = useFeatures ( ) ;
43
43
const currentPlan = useCurrentPlan ( ) ;
44
44
const isAdmin = useHasAdminAccess ( ) ;
45
+ const showBuildInfo = isAdmin || ! isManagedCloud ;
45
46
46
47
return (
47
48
< div
@@ -107,23 +108,23 @@ export function OrganizationSettingsSideMenu({
107
108
{ buildInfo . appVersion || `v${ buildInfo . packageVersion } ` }
108
109
</ Paragraph >
109
110
</ div >
110
- { isAdmin && buildInfo . buildTimestampSeonds && (
111
+ { showBuildInfo && buildInfo . buildTimestampSeonds && (
111
112
< div className = "flex flex-col gap-1" >
112
113
< SideMenuHeader title = "Build timestamp" />
113
114
< Paragraph variant = "extra-small" className = "px-2 text-text-dimmed" >
114
115
{ new Date ( Number ( buildInfo . buildTimestampSeonds ) * 1000 ) . toISOString ( ) }
115
116
</ Paragraph >
116
117
</ div >
117
118
) }
118
- { isAdmin && buildInfo . gitRefName && (
119
+ { showBuildInfo && buildInfo . gitRefName && (
119
120
< div className = "flex flex-col gap-1" >
120
121
< SideMenuHeader title = "Git ref" />
121
122
< Paragraph variant = "extra-small" className = "px-2 text-text-dimmed" >
122
123
{ buildInfo . gitRefName }
123
124
</ Paragraph >
124
125
</ div >
125
126
) }
126
- { isAdmin && buildInfo . gitSha && (
127
+ { showBuildInfo && buildInfo . gitSha && (
127
128
< div className = "flex flex-col gap-1" >
128
129
< SideMenuHeader title = "Git sha" />
129
130
< Paragraph variant = "extra-small" className = "px-2 text-text-dimmed" >
You can’t perform that action at this time.
0 commit comments