aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-05 10:44:51 +0100
committerJoas Schilling <coding@schilljs.com>2021-11-09 10:10:53 +0100
commitfa036b2001e0505006b6f9fe24d3fc56af937b06 (patch)
tree7d102e103cf131ccf3ec8d5650b6a3de13e835e6 /lib/public
parentf4307ef4b16ffa1ea5a9e4697b57be36660a7953 (diff)
downloadnextcloud-server-fa036b2001e0505006b6f9fe24d3fc56af937b06.tar.gz
nextcloud-server-fa036b2001e0505006b6f9fe24d3fc56af937b06.zip
Move common logic to share manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-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