summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-23 12:49:06 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-23 12:49:06 +0200
commit704b9e6a0d94a5c056214e92784d2e872ef83185 (patch)
tree82b9dc017a42293787383173377046e22b308f36 /lib/public
parent535e6ff71ff5acc49bcce92b8aecd78780491dfa (diff)
parentd418e176ce4ce3ee07a5b9e632150470c0387f87 (diff)
downloadnextcloud-server-704b9e6a0d94a5c056214e92784d2e872ef83185.tar.gz
nextcloud-server-704b9e6a0d94a5c056214e92784d2e872ef83185.zip
Merge pull request #8009 from owncloud/feature/add-sharing-target
Add option to getUsersSharingFile() to get the paths for the shared users
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 564839e86b6..c694314ad08 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -64,14 +64,15 @@ class Share extends \OC\Share\Constants {
/**
* Find which users can access a shared item
* @param string $path to the file
- * @param string $user owner of the file
+ * @param string $ownerUser owner of the file
* @param bool $includeOwner include owner to the list of users with access to the file
+ * @param bool $returnUserPaths Return an array with the user => path map
* @return array
* @note $path needs to be relative to user data dir, e.g. 'file.txt'
* not '/admin/data/file.txt'
*/
- public static function getUsersSharingFile($path, $user, $includeOwner = false) {
- return \OC\Share\Share::getUsersSharingFile($path, $user, $includeOwner);
+ public static function getUsersSharingFile($path, $ownerUser, $includeOwner = false, $returnUserPaths = false) {
+ return \OC\Share\Share::getUsersSharingFile($path, $ownerUser, $includeOwner, $returnUserPaths);
}
/**