mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Do not set full path if not currentAccess
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
f57ef55249
commit
b96297e9cc
1 changed files with 11 additions and 6 deletions
|
|
@ -1242,12 +1242,17 @@ class Manager implements IManager {
|
|||
/** @var Node[] $nodes */
|
||||
$nodes = [];
|
||||
|
||||
$ownerPath = $path->getPath();
|
||||
list(,,,$ownerPath) = explode('/', $ownerPath, 4);
|
||||
$al['users'][$owner] = [
|
||||
'node_id' => $path->getId(),
|
||||
'node_path' => '/' . $ownerPath,
|
||||
];
|
||||
|
||||
if ($currentAccess) {
|
||||
$ownerPath = $path->getPath();
|
||||
list(, , , $ownerPath) = explode('/', $ownerPath, 4);
|
||||
$al['users'][$owner] = [
|
||||
'node_id' => $path->getId(),
|
||||
'node_path' => '/' . $ownerPath,
|
||||
];
|
||||
} else {
|
||||
$al['users'][] = $owner;
|
||||
}
|
||||
|
||||
// Collect all the shares
|
||||
while ($path->getPath() !== $userFolder->getPath()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue