mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Show organization attribute path only for GrafanaAdmins on the UI (#98002)
* Show organization attribute path only for GrafanaAdmins * prettier
This commit is contained in:
parent
1f8f9a45d7
commit
7b24c4404d
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user