mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
fix: FileInfo from View should have the correct name of a mountpoint
If a mountpoint is returned from a `View` the name must match the view scoped name and not the global name. For example group folders have a name like `1` or `2` (the ID), but the name of the FileInfo returned fro mthe View should be the mount point name, like `First groupfolder` or similar. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
c40244fdab
commit
824803dd7b
1 changed files with 4 additions and 0 deletions
|
|
@ -1392,6 +1392,10 @@ class View {
|
|||
if ($mount instanceof MoveableMount && $internalPath === '') {
|
||||
$data['permissions'] |= \OCP\Constants::PERMISSION_DELETE;
|
||||
}
|
||||
if ($internalPath === '' && $data['name']) {
|
||||
$data['name'] = basename($path);
|
||||
}
|
||||
|
||||
$ownerId = $storage->getOwner($internalPath);
|
||||
$owner = null;
|
||||
if ($ownerId !== null && $ownerId !== false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue