Fix loading as guest

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-08-14 15:25:55 +02:00
parent 4ec0afd0e7
commit 2535e0ec04
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ class BackgroundService {
];
public function __construct(IRootFolder $rootFolder, IAppData $appData, $userId) {
if ($userId === null) {
return;
}
$this->userFolder = $rootFolder->getUserFolder($userId);
try {
$this->dashboardUserFolder = $appData->getFolder($userId);