Browse Source

Ignore "parent" shares when the sharee is the owner of the reshare-source

remotes/origin/poc-doctrine-migrations
Joas Schilling 11 years ago
parent
commit
f524ae261a
  1. 2
      lib/private/share/share.php

2
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) {

Loading…
Cancel
Save