Merge pull request #4540 from nextcloud/backport/4487/stable25
This commit is contained in:
@@ -204,7 +204,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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user