adjusts LDAP's home handler to use the correct user object

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/16525/head
Arthur Schiwon 7 years ago committed by Julius Härtl
parent d577076457
commit a2c5ab2f8b
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 5
      apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php

@ -39,8 +39,9 @@ class ExtStorageConfigHandler extends UserContext implements IConfigHandler {
*/
public function handle($optionValue) {
$this->placeholder = 'home';
$user = $this->getSession()->getUser();
if($user === null) {
$user = $this->getUser();
if($user->getUID() === null) {
return $optionValue;
}

Loading…
Cancel
Save