summaryrefslogtreecommitdiffstats
path: root/lib/public/Share/IManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Share/IManager.php')
-rw-r--r--lib/public/Share/IManager.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index 77a9980a894..8b1f5144b9a 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -32,6 +32,7 @@ namespace OCP\Share;
use OCP\Files\Folder;
use OCP\Files\Node;
+use OCP\IUser;
use OCP\Share\Exceptions\GenericShareException;
use OCP\Share\Exceptions\ShareNotFound;
@@ -448,6 +449,16 @@ interface IManager {
public function allowEnumerationFullMatch(): bool;
/**
+ * Check if the current user can enumerate the target user
+ *
+ * @param IUser|null $currentUser
+ * @param IUser $targetUser
+ * @return bool
+ * @since 23.0.0
+ */
+ public function currentUserCanEnumerateTargetUser(?IUser $currentUser, IUser $targetUser): bool;
+
+ /**
* Check if sharing is disabled for the given user
*
* @param string $userId