RBAC: Explain why org role selection is disabled for externally synced users (#72274)

* Move builtin role selector to separate component

* Show message if basic roles picker disabled

* Show explanation in OSS
This commit is contained in:
Alexander Zobnin
2023-07-25 16:16:07 +03:00
committed by GitHub
parent 783a8527c5
commit d6e43a44bd
6 changed files with 76 additions and 14 deletions

View File

@@ -209,6 +209,8 @@ class UnThemedOrgRow extends PureComponent<OrgRowProps> {
roleOptions={this.state.roleOptions}
onBasicRoleChange={this.onBasicRoleChange}
basicRoleDisabled={rolePickerDisabled}
basicRoleDisabledMessage="This user's role is not editable because it is synchronized from your auth provider.
Refer to the Grafana authentication docs for details."
/>
</div>
{isExternalUser && <ExternalUserTooltip lockMessage={lockMessage} />}