mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
When changing the share owner, downgrade permissions where needed
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
4a2804dae2
commit
06bfbb4a8c
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ class Updater {
|
|||
continue;
|
||||
}
|
||||
$share->setShareOwner($newOwner);
|
||||
$share->setPermissions($share->getPermissions() & $dstMount->getShare()->getPermissions());
|
||||
$shareManager->updateShare($share);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue