summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-08-17 12:53:24 +0200
committerBjörn Schießle <bjoern@schiessle.org>2015-11-04 09:27:29 +0100
commit4719305e3b99d53c72a341c5b6cbfee6bf984fb7 (patch)
tree550c78e3fd6de1e856e80338a398db7fd9e0a954 /lib/public
parent7fe047425fa0dc29069ea0c783464e16ed19ae98 (diff)
downloadnextcloud-server-4719305e3b99d53c72a341c5b6cbfee6bf984fb7.tar.gz
nextcloud-server-4719305e3b99d53c72a341c5b6cbfee6bf984fb7.zip
cache result from parent folders
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 68f278005ed..4e7323c40f6 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -80,13 +80,14 @@ class Share extends \OC\Share\Constants {
* @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
+ * @param bool $recursive take parent folders into account
* @return array
* @note $path needs to be relative to user data dir, e.g. 'file.txt'
- * not '/admin/data/file.txt'
- * @since 5.0.0
+ * not '/admin/files/file.txt'
+ * @since 5.0.0 - $recursive was added in 8.2.0
*/
- public static function getUsersSharingFile($path, $ownerUser, $includeOwner = false, $returnUserPaths = false) {
- return \OC\Share\Share::getUsersSharingFile($path, $ownerUser, $includeOwner, $returnUserPaths);
+ public static function getUsersSharingFile($path, $ownerUser, $includeOwner = false, $returnUserPaths = false, $recursive = true) {
+ return \OC\Share\Share::getUsersSharingFile($path, $ownerUser, $includeOwner, $returnUserPaths, $recursive);
}
/**