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

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2019-07-25 17:58:13 +02:00 committed by Julius Härtl
parent d577076457
commit a2c5ab2f8b
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}