Merge pull request #4541 from nextcloud/backport/4487/stable24

This commit is contained in:
Julius Härtl
2023-03-20 07:16:14 +01:00
committed by GitHub

View File

@@ -193,7 +193,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');
}