Skip to content

Commit

Permalink
Merge pull request #15832 from nextcloud/bugfix/noid/fulltext-search-…
Browse files Browse the repository at this point in the history
…groupfolders

Fix full text search for groupfolders
  • Loading branch information
rullzer authored Jun 25, 2019
2 parents 0f0dfc8 + 9dac971 commit 2f5810f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,7 @@ private function lockPath($path, $type, $lockMountPoint = false) {
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,
Expand Down Expand Up @@ -1974,7 +1974,7 @@ public function changeLock($path, $type, $lockMountPoint = false) {
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,
Expand Down
3 changes: 3 additions & 0 deletions lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,9 @@ public function getAccessList(\OCP\Files\Node $path, $recursive = true, $current
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();
}

Expand Down

0 comments on commit 2f5810f

Please sign in to comment.