Ignore "parent" shares when the sharee is the owner of the reshare-source
This commit is contained in:
parent
3c37cbdfe7
commit
f524ae261a
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue