forked from extern/egroupware
* LDAP/AD/OpenID Connect: fix error creating tokens with profile claim, if user has a picture
This commit is contained in:
parent
63001969da
commit
f7199c1d4c
@ -59,6 +59,12 @@ trait UserContextTrait
|
||||
$this->check_set_context($url_or_context);
|
||||
}
|
||||
}
|
||||
|
||||
// if we have no user set, set the current one / Api\Vfs::$user
|
||||
if (empty(stream_context_get_options($this->context)[Vfs::SCHEME]['user']) && !empty(Api\Vfs::$user))
|
||||
{
|
||||
stream_context_set_option($this->context, [Vfs::SCHEME => ['user' => Api\Vfs::$user]]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -248,4 +254,4 @@ trait UserContextTrait
|
||||
{
|
||||
return $this->__get($name) !== null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user