summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/connector
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-10 20:53:56 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-10 20:53:56 +0100
commitb7adf371c609c93087c6fb66cc2fd261a7f80d46 (patch)
tree9a0a55daa10d165308b2522a1585d276cfbfd7ec /apps/dav/lib/connector
parentb3c1379b8c15f4f81cbf1d2a3f4c63e41b4406ed (diff)
downloadnextcloud-server-b7adf371c609c93087c6fb66cc2fd261a7f80d46.tar.gz
nextcloud-server-b7adf371c609c93087c6fb66cc2fd261a7f80d46.zip
getOwner is not available on FileHome - fixes #23116
Diffstat (limited to 'apps/dav/lib/connector')
-rw-r--r--apps/dav/lib/connector/sabre/filesplugin.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/dav/lib/connector/sabre/filesplugin.php b/apps/dav/lib/connector/sabre/filesplugin.php
index 4b05922adfd..e973b4e8682 100644
--- a/apps/dav/lib/connector/sabre/filesplugin.php
+++ b/apps/dav/lib/connector/sabre/filesplugin.php
@@ -235,6 +235,16 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
$propFind->handle(self::GETETAG_PROPERTYNAME, function() use ($node) {
return $node->getEtag();
});
+
+ $propFind->handle(self::OWNER_ID_PROPERTYNAME, function() use ($node) {
+ $owner = $node->getOwner();
+ return $owner->getUID();
+ });
+ $propFind->handle(self::OWNER_DISPLAY_NAME_PROPERTYNAME, function() use ($node) {
+ $owner = $node->getOwner();
+ $displayName = $owner->getDisplayName();
+ return $displayName;
+ });
}
if ($node instanceof \OCA\DAV\Connector\Sabre\File) {
@@ -267,16 +277,6 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
return $node->getSize();
});
}
-
- $propFind->handle(self::OWNER_ID_PROPERTYNAME, function() use ($node) {
- $owner = $node->getOwner();
- return $owner->getUID();
- });
- $propFind->handle(self::OWNER_DISPLAY_NAME_PROPERTYNAME, function() use ($node) {
- $owner = $node->getOwner();
- $displayName = $owner->getDisplayName();
- return $displayName;
- });
}
/**