Skip to content

Commit

Permalink
No need to fetch owner path
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Apr 13, 2017
1 parent de0dc77 commit 112e3c4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1241,13 +1241,7 @@ public function getAccessList(\OCP\Files\Node $path, $recursive = true, $current

/** @var Node[] $nodes */
$nodes = [];

$ownerPath = $path->getPath();
list(,,,$ownerPath) = explode('/', $ownerPath, 4);
$al['users'][$owner] = [
'node_id' => $path->getId(),
'node_path' => '/' . $ownerPath,
];
$al['users'][] = $owner;

// Collect all the shares
while ($path->getPath() !== $userFolder->getPath()) {
Expand Down

0 comments on commit 112e3c4

Please sign in to comment.