Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-29 15:18:46 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-06-25 10:56:41 +0300
commit4cbf10f392bcc31d8b24ebb0d3685dd2d6a992ea (patch)
tree09619757e6c03aabf1b6f144459f645a5e8b8243 /lib
parent5b1b84486785e3021b6e7e1823c037acbd63e4cc (diff)
Ignore "parent" shares when the sharee is the owner of the reshare-source
Diffstat (limited to 'lib')
-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 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) {