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 Backportbot
parent bb9f14115c
commit 9e5994a210
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;
}