Skip to content

Commit 26b4cde

Browse files
committed
When changing the share owner, downgrade permissions where needed
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 6dd0b5c commit 26b4cde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/files_sharing/lib/Updater.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ private static function moveShareToShare($path) {
8888
continue;
8989
}
9090
$share->setShareOwner($newOwner);
91+
$share->setPermissions($share->getPermissions() & $dstMount->getShare()->getPermissions());
9192
$shareManager->updateShare($share);
9293
}
9394
}

0 commit comments

Comments
 (0)