BookmarkController: Fix _returnBookmarkAsArray

This commit is contained in:
Marcel Klehr 2020-06-21 11:44:57 +02:00
parent d83c95a495
commit 96f7652047
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class BookmarkController extends ApiController {
if ($this->toExternalFolderId($folder->getId()) === -1) {
return false;
}
if ($this->folders->findShareByDescendantAndUser($folder, $this->authorizer->getUserId()) !== null) {
if ($this->authorizer->getUserId() !== null && $this->folders->findShareByDescendantAndUser($folder, $this->authorizer->getUserId()) !== null) {
return true;
}
return false;