diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 755cc0ce1..a56779175 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -231,7 +231,7 @@ public function getAttachmentFolder(?string $userId = null): string { return $this->config->getUserValue($userId ?? $this->getUserId(), 'deck', 'attachment_folder', '/Deck'); } - public function setAttachmentFolder(?string $userId = null, string $path): void { + public function setAttachmentFolder(?string $userId, string $path): void { if ($userId === null && $this->getUserId() === null) { throw new NoPermissionException('Must be logged in get the attachment folder'); }