diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-21 16:59:59 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-07-21 16:59:59 +0200 |
commit | e9de20952a4f2f2793d0eb126546c5128d28096e (patch) | |
tree | 414342b28a4c921d5ba6643d3b246db1b66185a3 /lib/private | |
parent | 61598e7bb51de58bf48fa4e1b358440ac8cf1774 (diff) | |
download | nextcloud-server-e9de20952a4f2f2793d0eb126546c5128d28096e.tar.gz nextcloud-server-e9de20952a4f2f2793d0eb126546c5128d28096e.zip |
Return the proper owner for home storages
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/files/storage/home.php | 10 |
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(); + } } |