diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-04-21 19:43:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 19:43:53 +0200 |
commit | d46b155916c4c49fffb5bf8c4391331ce90b44c1 (patch) | |
tree | 1069317f58f3ee65b7ba5d9479793bb42c9e5c40 /lib/public | |
parent | 1666a17ebe93cda3274b5754b4337b1d49b02ad2 (diff) | |
parent | 6fbe991afbb5df36c2fef5cac8c9681f91aed311 (diff) | |
download | nextcloud-server-d46b155916c4c49fffb5bf8c4391331ce90b44c1.tar.gz nextcloud-server-d46b155916c4c49fffb5bf8c4391331ce90b44c1.zip |
Merge pull request #4428 from nextcloud/file-by-id-limit-user
limit the user when searching for a file by id if we know the user already
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/Config/IUserMountCache.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/Files/Config/IUserMountCache.php b/lib/public/Files/Config/IUserMountCache.php index c141d019c2f..cf30d8fb431 100644 --- a/lib/public/Files/Config/IUserMountCache.php +++ b/lib/public/Files/Config/IUserMountCache.php @@ -53,10 +53,11 @@ interface IUserMountCache { * Get all cached mounts by storage * * @param int $numericStorageId + * @param string|null $user limit the results to a single user @since 12.0.0 * @return ICachedMountInfo[] * @since 9.0.0 */ - public function getMountsForStorageId($numericStorageId); + public function getMountsForStorageId($numericStorageId, $user = null); /** * Get all cached mounts by root @@ -71,10 +72,11 @@ interface IUserMountCache { * Get all cached mounts that contain a file * * @param int $fileId + * @param string|null $user optionally restrict the results to a single user @since 12.0.0 * @return ICachedMountInfo[] * @since 9.0.0 */ - public function getMountsForFileId($fileId); + public function getMountsForFileId($fileId, $user = null); /** * Remove all cached mounts for a user |