diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-23 16:16:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-23 16:16:46 +0200 |
commit | 7424f3aef6ecdb1b62f4ab4ff0d23ade9011ad77 (patch) | |
tree | e9cf72f3d6813d564baa9c286d0461afd0a27b34 /apps/files_sharing/lib | |
parent | 707bd68bb4e77b4184b578699d508750653e2d42 (diff) | |
parent | ab944094e2c0c9d063cc363a81dbe517c259a466 (diff) | |
download | nextcloud-server-7424f3aef6ecdb1b62f4ab4ff0d23ade9011ad77.tar.gz nextcloud-server-7424f3aef6ecdb1b62f4ab4ff0d23ade9011ad77.zip |
merge master into filesystem
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index e354314cc39..f40bb95b659 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -99,6 +99,14 @@ class Shared extends \OC\Files\Storage\Common { return false; } + public function getOwner($target) { + $shared_item = \OCP\Share::getItemSharedWith('folder', $target, \OC_Share_Backend_File::FORMAT_SHARED_STORAGE); + if ($shared_item) { + return $shared_item[0]["uid_owner"]; + } + return null; + } + public function mkdir($path) { if ($path == '' || $path == '/' || !$this->isCreatable(dirname($path))) { return false; |