diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-09-25 13:45:23 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-09-25 14:26:31 +0200 |
commit | 52b6469b0c2a21ce6e77f8c56dae464eac99781e (patch) | |
tree | 66c173983a966fbeb591945ded172ae688f4e666 /apps/files_sharing/lib | |
parent | 968152113e35b39bd18d1ad583dd86d11949e83c (diff) | |
download | nextcloud-server-52b6469b0c2a21ce6e77f8c56dae464eac99781e.tar.gz nextcloud-server-52b6469b0c2a21ce6e77f8c56dae464eac99781e.zip |
call \OCP\Share::getItemsSharedWithUser() to get exclude list, this way all checks are executed, e.g. to check if the share is really visible
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/share/file.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php index 0cd66547d0b..1086e21d79f 100644 --- a/apps/files_sharing/lib/share/file.php +++ b/apps/files_sharing/lib/share/file.php @@ -83,12 +83,7 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent { } } - $excludeList = \OCP\Share::getItemsSharedWithUser('file', $shareWith, self::FORMAT_TARGET_NAMES); - if (is_array($exclude)) { - $excludeList = array_merge($excludeList, $exclude); - } - - return \OCA\Files_Sharing\Helper::generateUniqueTarget($target, $excludeList, $view); + return \OCA\Files_Sharing\Helper::generateUniqueTarget($target, $exclude, $view); } public function formatItems($items, $format, $parameters = null) { |