aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-29 14:18:46 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-29 14:18:46 +0200
commitf524ae261ae53b7d3ea88f952ad29d72eb48dcb4 (patch)
tree94a375662990cac988ebe9fc315c2826136bfecc /lib/private/share
parent3c37cbdfe7eb29db30dc5b9b62b7430f19419412 (diff)
downloadnextcloud-server-f524ae261ae53b7d3ea88f952ad29d72eb48dcb4.tar.gz
nextcloud-server-f524ae261ae53b7d3ea88f952ad29d72eb48dcb4.zip
Ignore "parent" shares when the sharee is the owner of the reshare-source
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php2
1 files changed, 2 insertions, 0 deletions
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) {