From f524ae261ae53b7d3ea88f952ad29d72eb48dcb4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 29 Apr 2015 14:18:46 +0200 Subject: Ignore "parent" shares when the sharee is the owner of the reshare-source --- lib/private/share/share.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/private') diff --git a/lib/private/share/share.php b/lib/private/share/share.php index d1facc961a5..61d9b3b70e3 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -2100,7 +2100,9 @@ class Share extends Constants { \OC_Log::write('OCP\Share', sprintf($message, $itemSourceName, $shareWith), \OC_Log::ERROR); throw new \Exception($message_t); } + } + if ($checkReshare && $checkReshare['uid_owner'] !== \OC_User::getUser()) { // Check if share permissions is granted if (self::isResharingAllowed() && (int)$checkReshare['permissions'] & \OCP\Constants::PERMISSION_SHARE) { if (~(int)$checkReshare['permissions'] & $permissions) { -- cgit v1.2.3