diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-29 14:18:46 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-25 09:56:41 +0200 |
commit | 4cbf10f392bcc31d8b24ebb0d3685dd2d6a992ea (patch) | |
tree | 09619757e6c03aabf1b6f144459f645a5e8b8243 /lib | |
parent | 5b1b84486785e3021b6e7e1823c037acbd63e4cc (diff) | |
download | nextcloud-server-4cbf10f392bcc31d8b24ebb0d3685dd2d6a992ea.tar.gz nextcloud-server-4cbf10f392bcc31d8b24ebb0d3685dd2d6a992ea.zip |
Ignore "parent" shares when the sharee is the owner of the reshare-source
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/share/share.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index e1eabc6c4bb..792b772584c 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -2071,7 +2071,9 @@ class Share extends \OC\Share\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) { |