diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-05-11 13:17:49 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-07-06 17:29:13 +0000 |
commit | 36a0d1486e57db13c8f7b9fc094b30dbf430bc77 (patch) | |
tree | ae21cadce873880cb21c316f1aa689d291be6a5c /apps/dav/lib/Connector/Sabre | |
parent | 99442b60d5253f36438bd7c8e359ddc5a7ec219f (diff) | |
download | nextcloud-server-36a0d1486e57db13c8f7b9fc094b30dbf430bc77.tar.gz nextcloud-server-36a0d1486e57db13c8f7b9fc094b30dbf430bc77.zip |
fix: ensure searchBySystemTag() is available
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesReportPlugin.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php index 7a53c34744c..8330934fa75 100644 --- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php @@ -330,7 +330,9 @@ class FilesReportPlugin extends ServerPlugin { $nodes = []; - if (!empty($systemTagIds)) { + // type check to ensure searchBySystemTag is available, it is not + // exposed in API yet + if (!empty($systemTagIds) && $this->userFolder instanceof \OC\Files\Node\Folder) { $tags = $this->tagManager->getTagsByIds($systemTagIds); $tagName = (current($tags))->getName(); $nodes = $this->userFolder->searchBySystemTag($tagName, $this->userSession->getUser()->getUID(), $limit ?? 0, $offset ?? 0); |