* LDAP/AD/OpenID Connect: fix error creating tokens with profile claim, if user has a picture

This commit is contained in:
ralf 2022-09-16 09:14:38 +02:00
parent 63001969da
commit f7199c1d4c

View File

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