aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-10-30 10:12:04 +0100
committerGitHub <noreply@github.com>2018-10-30 10:12:04 +0100
commit31ccf8580aa384fe9f6ca7a9d3d6efd5ea973b82 (patch)
treeb84803348c01b736cb455f8dcd786649d90d6d0b /apps/user_ldap
parentaa77b4490c561b2cbc94835cec670ab8af4fa685 (diff)
parent05f909dcf35878829b243de63eabd5d0f0fe3fc9 (diff)
downloadnextcloud-server-31ccf8580aa384fe9f6ca7a9d3d6efd5ea973b82.tar.gz
nextcloud-server-31ccf8580aa384fe9f6ca7a9d3d6efd5ea973b82.zip
Merge pull request #12070 from nextcloud/fix/noid/announce-chosen-uid
announce the chosen uid (fixes wrong variable usage)
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index e05bc539a77..d0d51ae8c85 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -624,9 +624,9 @@ class Access extends LDAPUtility implements IUserTools {
$this->connection->setConfiguration(['ldapCacheTTL' => $originalTTL]);
$altName = $this->createAltInternalOwnCloudName($intName, $isUser);
- if(is_string($altName) && $mapper->map($fdn, $altName, $uuid)) {
- if($this->ncUserManager instanceof PublicEmitter && $isUser) {
- $this->ncUserManager->emit('\OC\User', 'assignedUserId', [$intName]);
+ if (is_string($altName) && $mapper->map($fdn, $altName, $uuid)) {
+ if ($this->ncUserManager instanceof PublicEmitter && $isUser) {
+ $this->ncUserManager->emit('\OC\User', 'assignedUserId', [$altName]);
}
$newlyMapped = true;
return $altName;