Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-14 10:34:30 +0300
committerJulius Härtl <jus@bitgrid.net>2019-05-14 10:34:30 +0300
commitfe6272f411f502b5734f74270f62fed17a0a8156 (patch)
treea518a1d6b1ffb0def71ea30d72502909dc858cf2 /lib/Service/SessionService.php
parentfd1e342338fbf6007ccbcd4fc2a34cdf8c8b2140 (diff)
Add public endpoints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Service/SessionService.php')
-rw-r--r--lib/Service/SessionService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/SessionService.php b/lib/Service/SessionService.php
index 94bc145ad..c46a1fef4 100644
--- a/lib/Service/SessionService.php
+++ b/lib/Service/SessionService.php
@@ -46,7 +46,7 @@ class SessionService {
$this->sessionMapper = $sessionMapper;
$this->secureRandom = $secureRandom;
$this->timeFactory = $timeFactory;
- $this->userId = $userId;
+ $this->userId = $userId ?? 'Guest';
}
public function initSession($documentId): Session {