summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-09-25 13:45:23 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-10-01 15:13:48 +0200
commit6d747e97213a3440e11d41bf43743b97cbf81c04 (patch)
tree1ec5ce21a7810056eae3ba34f22e92c618462614 /apps/files_sharing/lib
parentc5db1ef3ccee153361966fe7b43e967bf62e004b (diff)
downloadnextcloud-server-6d747e97213a3440e11d41bf43743b97cbf81c04.tar.gz
nextcloud-server-6d747e97213a3440e11d41bf43743b97cbf81c04.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.php7
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) {