mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Admin: Fix Synced via LDAP message for non-LDAP external users (#23477)
* UserAdmin: remove Synced via LDAP message for non-LDAP users * UserAdmin: show "Synced via <provider>" message for external users
This commit is contained in:
parent
bb357adcab
commit
4d81cec34f
@ -82,7 +82,8 @@ export class UserProfile extends PureComponent<Props, State> {
|
|||||||
render() {
|
render() {
|
||||||
const { user } = this.props;
|
const { user } = this.props;
|
||||||
const { showDeleteModal, showDisableModal } = this.state;
|
const { showDeleteModal, showDisableModal } = this.state;
|
||||||
const lockMessage = 'Synced via LDAP';
|
const authSource = user.authLabels?.length && user.authLabels[0];
|
||||||
|
const lockMessage = authSource ? `Synced via ${authSource}` : '';
|
||||||
const styles = getStyles(config.theme);
|
const styles = getStyles(config.theme);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user