[release-12.0.6] LDAP Authentication: Fix URL to propagate username context as parameter (#111847)
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:
co-authored by
Bradley
parent
cfd4902d33
commit
5d655ccf37
@@ -28,7 +28,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user