Skip to content

Commit

Permalink
Fix full text search for groupfolders
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke authored and ArtificialOwl committed Jun 17, 2019
1 parent 2378012 commit 9dac971
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 @@ -1928,7 +1928,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 @@ -1969,7 +1969,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 9dac971

Please sign in to comment.