When changing the share owner, downgrade permissions where needed
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6dd0b5c768
commit
26b4cde016
|
@ -88,6 +88,7 @@ class Updater {
|
|||
continue;
|
||||
}
|
||||
$share->setShareOwner($newOwner);
|
||||
$share->setPermissions($share->getPermissions() & $dstMount->getShare()->getPermissions());
|
||||
$shareManager->updateShare($share);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue