summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-08-12 14:29:17 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-12 14:29:17 +0200
commit174805f5e35131c891a4b0fa8db3fea3526cfcdb (patch)
tree9aaef18d335672a1c9175257fe0ce22a52f1e543 /lib
parente18b0fca47d6f601c947c149efbbe9b15af9e792 (diff)
parenta8532aa2f04c833b4b9656804cc75c4ca2eb6de9 (diff)
downloadnextcloud-server-174805f5e35131c891a4b0fa8db3fea3526cfcdb.tar.gz
nextcloud-server-174805f5e35131c891a4b0fa8db3fea3526cfcdb.zip
Merge pull request #9762 from owncloud/owner-public
Return the proper owner for home storages
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/home.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php
index 015b1f01885..85b06f8a510 100644
--- a/lib/private/files/storage/home.php
+++ b/lib/private/files/storage/home.php
@@ -66,4 +66,14 @@ class Home extends Local implements \OCP\Files\IHomeStorage {
public function getUser() {
return $this->user;
}
+
+ /**
+ * get the owner of a path
+ *
+ * @param string $path The path to get the owner
+ * @return string uid or false
+ */
+ public function getOwner($path) {
+ return $this->user->getUID();
+ }
}