Fetch attachment folder for the correct user during cron job

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-08-05 13:20:41 +02:00
parent f9e96922eb
commit e639456a82
2 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ class Listener {
}
}
$parent = $this->configService->getAttachmentFolder();
$parent = $this->configService->getAttachmentFolder($userId);
$event->setParent($parent);
if (!$event->getView()->is_dir($parent)) {
$event->getView()->mkdir($parent);