diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-08-17 12:53:24 +0200 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-11-04 09:27:29 +0100 |
commit | 4719305e3b99d53c72a341c5b6cbfee6bf984fb7 (patch) | |
tree | 550c78e3fd6de1e856e80338a398db7fd9e0a954 /lib/public | |
parent | 7fe047425fa0dc29069ea0c783464e16ed19ae98 (diff) | |
download | nextcloud-server-4719305e3b99d53c72a341c5b6cbfee6bf984fb7.tar.gz nextcloud-server-4719305e3b99d53c72a341c5b6cbfee6bf984fb7.zip |
cache result from parent folders
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share.php | 9 |
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); } /** |