summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/access.php
diff options
context:
space:
mode:
authorblizzz <blizzz@owncloud.com>2015-11-02 13:32:24 +0100
committerblizzz <blizzz@owncloud.com>2015-11-02 13:32:24 +0100
commit83d3c94590aa877fe23a5d49c991e617d76a6060 (patch)
tree88813a6c5e13381bf8a23723862a6b7d7ea56a92 /apps/user_ldap/lib/access.php
parent16aa33947581959eeb9a89530ad0152cb2c33c25 (diff)
parenta8641fdc9559d67696fb612597c4b27d1832220a (diff)
downloadnextcloud-server-83d3c94590aa877fe23a5d49c991e617d76a6060.tar.gz
nextcloud-server-83d3c94590aa877fe23a5d49c991e617d76a6060.zip
Merge branch 'master' into fix-20151
Diffstat (limited to 'apps/user_ldap/lib/access.php')
-rw-r--r--apps/user_ldap/lib/access.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 8a6e3c6726f..d4f4eaddcb3 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -35,6 +35,7 @@
namespace OCA\user_ldap\lib;
+use OCA\user_ldap\lib\user\OfflineUser;
use OCA\User_LDAP\Mapping\AbstractMapping;
/**
@@ -710,6 +711,10 @@ class Access extends LDAPUtility implements user\IUserTools {
$ocName = $this->dn2ocname($userRecord['dn'][0], $userRecord[$displayNameAttribute]);
$this->cacheUserExists($ocName);
$user = $this->userManager->get($ocName);
+ if($user instanceof OfflineUser) {
+ $user->unmark();
+ $user = $this->userManager->get($ocName);
+ }
$user->processAttributes($userRecord);
}
}