Fix full text search for groupfolders

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/15832/head
Morris Jobke 7 years ago committed by Maxence Lange
parent 2378012ee0
commit 9dac9710e4
  1. 4
      lib/private/Files/View.php
  2. 3
      lib/private/Share20/Manager.php

@ -1928,7 +1928,7 @@ class View {
if ($mount) {
try {
$storage = $mount->getStorage();
if ($storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
if ($storage && $storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
$storage->acquireLock(
$mount->getInternalPath($absolutePath),
$type,
@ -1969,7 +1969,7 @@ class View {
if ($mount) {
try {
$storage = $mount->getStorage();
if ($storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
if ($storage && $storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
$storage->changeLock(
$mount->getInternalPath($absolutePath),
$type,

@ -1430,6 +1430,9 @@ class Manager implements IManager {
if ($path->getId() !== $userFolder->getId() && !$userFolder->isSubNode($path)) {
$nodes = $userFolder->getById($path->getId());
$path = array_shift($nodes);
if ($path->getOwner() === null) {
return [];
}
$owner = $path->getOwner()->getUID();
}

Loading…
Cancel
Save