mirror of https://github.com/grafana/grafana.git
[release-12.1.3] LDAP Authentication: Fix URL to propagate username context as parameter (#111848)
LDAP Authentication: Fix URL to propagate username context as parameter (#111723)
Fix URL to propagate username context as parameter
(cherry picked from commit 7055ba9140
)
Co-authored-by: Bradley <12028233+bradleypettit@users.noreply.github.com>
This commit is contained in:
parent
bf33b3e067
commit
c760f97bc4
|
@ -30,7 +30,7 @@ export class UserLdapSyncInfo extends PureComponent<Props, State> {
|
|||
const { ldapSyncInfo, user } = this.props;
|
||||
const nextSyncSuccessful = ldapSyncInfo && ldapSyncInfo.nextSync;
|
||||
const nextSyncTime = nextSyncSuccessful ? dateTimeFormat(ldapSyncInfo.nextSync, { format }) : '';
|
||||
const debugLDAPMappingURL = `${debugLDAPMappingBaseURL}?user=${user && user.login}`;
|
||||
const debugLDAPMappingURL = `${debugLDAPMappingBaseURL}?username=${user && user.login}`;
|
||||
const canReadLDAPUser = contextSrv.hasPermission(AccessControlAction.LDAPUsersRead);
|
||||
const canSyncLDAPUser = contextSrv.hasPermission(AccessControlAction.LDAPUsersSync);
|
||||
|
||||
|
|
Loading…
Reference in New Issue