Merge pull request #4487 from nextcloud/bugfix/3358

fix: Use passed userid when getting attachment folder
This commit is contained in:
Marcel Klehr
2023-02-28 13:28:10 +01:00
committed by GitHub

View File

@@ -224,7 +224,7 @@ class ConfigService {
}
public function getAttachmentFolder(string $userId = null): string {
if ($this->getUserId() === null) {
if ($userId === null && $this->getUserId() === null) {
throw new NoPermissionException('Must be logged in get the attachment folder');
}