diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-02 12:54:41 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-09 15:02:05 +0200 |
commit | 015b9b1dac1e7f90e4e28d2b19697bedf83e56fe (patch) | |
tree | c8584bf5829ccebc977636f9e4e418d5be4ad689 /lib/public/share.php | |
parent | fbb9e11a7e442bfef50c2d1a5c41aa0c349e7f22 (diff) | |
download | nextcloud-server-015b9b1dac1e7f90e4e28d2b19697bedf83e56fe.tar.gz nextcloud-server-015b9b1dac1e7f90e4e28d2b19697bedf83e56fe.zip |
Add option to getUsersSharingFile() to get the paths for the shared users
Diffstat (limited to 'lib/public/share.php')
-rw-r--r-- | lib/public/share.php | 7 |
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); } /** |