We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b97cf7 commit a93ef85Copy full SHA for a93ef85
lib/base.php
@@ -1190,7 +1190,9 @@ public static function handleRequest(): void {
1190
// Redirect to the default app or login only as an entry point
1191
if ($requestPath === '') {
1192
// Someone is logged in
1193
- if (Server::get(IUserSession::class)->isLoggedIn()) {
+ $userSession = Server::get(IUserSession::class);
1194
+ if ($userSession->isLoggedIn()) {
1195
+ header('X-User-Id: ' . $userSession->getUser()?->getUID());
1196
header('Location: ' . Server::get(IURLGenerator::class)->linkToDefaultPageUrl());
1197
} else {
1198
// Not handled and not logged in
0 commit comments