Skip to content
Snippets Groups Projects
Unverified Commit 9adf78c1 authored by Robin Appelman's avatar Robin Appelman
Browse files

dont show shares you own in "shared with you"

parent 1d04c9e3
No related merge requests found
......@@ -42,6 +42,7 @@ use OCP\Share\IManager;
use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\Exceptions\GenericShareException;
use OCP\Lock\ILockingProvider;
use OCP\Share\IShare;
/**
* Class Share20OCS
......@@ -420,6 +421,10 @@ class Share20OCS extends OCSController {
$shares = array_merge($userShares, $groupShares);
$shares = array_filter($shares, function(IShare $share) {
return $share->getShareOwner() !== $this->currentUser->getUID();
});
$formatted = [];
foreach ($shares as $share) {
if ($this->canAccessShare($share)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment