summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-11 16:29:09 +0200
committerGitHub <noreply@github.com>2018-07-11 16:29:09 +0200
commitcc9073c251de65f6fc1edb0910f15720146604b5 (patch)
tree6b0aad9ab9cf356bfd61697400897cba9beacab0 /lib/public/Files
parente35451fd4ea3fcae501c7ae373f82c8a6a3b84ba (diff)
parent3ad6084891b88b3b7ef784bbf297b0a57b282d77 (diff)
downloadnextcloud-server-cc9073c251de65f6fc1edb0910f15720146604b5.tar.gz
nextcloud-server-cc9073c251de65f6fc1edb0910f15720146604b5.zip
Merge pull request #10179 from nextcloud/mount-filter
Add the option to filter mounts for a user
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Config/IMountProviderCollection.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/Files/Config/IMountProviderCollection.php b/lib/public/Files/Config/IMountProviderCollection.php
index 93701c326b2..a3f96f37aa6 100644
--- a/lib/public/Files/Config/IMountProviderCollection.php
+++ b/lib/public/Files/Config/IMountProviderCollection.php
@@ -57,6 +57,14 @@ interface IMountProviderCollection {
public function registerProvider(IMountProvider $provider);
/**
+ * Add a filter for mounts
+ *
+ * @param callable $filter (IMountPoint $mountPoint, IUser $user) => boolean
+ * @since 14.0.0
+ */
+ public function registerMountFilter(callable $filter);
+
+ /**
* Add a provider for home mount points
*
* @param \OCP\Files\Config\IHomeMountProvider $provider