[v11.4.x] Fix: Show organization attribute path only for GrafanaAdmins on the UI (#98043)

Fix: Show organization attribute path only for GrafanaAdmins on the UI (#98002)

* Show organization attribute path only for GrafanaAdmins

* prettier

(cherry picked from commit 7b24c4404d)

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-12-16 17:18:40 +02:00
committed by GitHub
co-authored by Misi
parent 4c288f39ee
commit e1ba2dd355
+1 -1
View File
@@ -473,7 +473,7 @@ export function fieldMap(provider: string): Record<string, FieldData> {
label: 'Organization attribute path',
description: 'JMESPath expression to use for organization lookup.',
type: 'text',
hidden: !['generic_oauth', 'okta'].includes(provider),
hidden: !(['generic_oauth', 'okta'].includes(provider) && contextSrv.isGrafanaAdmin),
},
defineAllowedGroups: {
label: 'Define allowed groups',