mirror of https://github.com/nextcloud/server
Fix loading as guest
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
4ec0afd0e7
commit
2535e0ec04
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue