diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-27 16:03:37 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-27 16:03:37 +0200 |
commit | 20e7a0c07b4259a22231b70a1b66514be2adeed7 (patch) | |
tree | 0da2ceca12b9a7b504315b4736e2a48d35ea339e /apps/files_sharing/lib/Collaboration | |
parent | ca72c0150b3ea490c06c8c4824aebf0d0da33088 (diff) | |
download | nextcloud-server-20e7a0c07b4259a22231b70a1b66514be2adeed7.tar.gz nextcloud-server-20e7a0c07b4259a22231b70a1b66514be2adeed7.zip |
fix sharerecipientssorter tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/files_sharing/lib/Collaboration')
-rw-r--r-- | apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php b/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php index 5d19ed5d427..db213398118 100644 --- a/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php +++ b/apps/files_sharing/lib/Collaboration/ShareRecipientSorter.php @@ -55,12 +55,12 @@ class ShareRecipientSorter implements ISorter { if($context['itemType'] !== 'files' && $context['itemType'] !== 'file') { return; } - /** @var Node[] $nodes */ $user = $this->userSession->getUser(); if($user === null) { return; } $userFolder = $this->rootFolder->getUserFolder($user->getUID()); + /** @var Node[] $nodes */ $nodes = $userFolder->getById((int)$context['itemId']); if(count($nodes) === 0) { return; |