Add support for room shares to the share owner updater
A user can move her own shares into a received share. When that happens she is effectively handing over the ownership of the file, so the share needs to be updated to reflect the new owner. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
8084ba516f
commit
1ccc99ed83
|
@ -59,6 +59,7 @@ class Updater {
|
|||
|
||||
$shares = $shareManager->getSharesBy($userFolder->getOwner()->getUID(), \OCP\Share::SHARE_TYPE_USER, $src, false, -1);
|
||||
$shares = array_merge($shares, $shareManager->getSharesBy($userFolder->getOwner()->getUID(), \OCP\Share::SHARE_TYPE_GROUP, $src, false, -1));
|
||||
$shares = array_merge($shares, $shareManager->getSharesBy($userFolder->getOwner()->getUID(), \OCP\Share::SHARE_TYPE_ROOM, $src, false, -1));
|
||||
|
||||
// If the path we move is not a share we don't care
|
||||
if (empty($shares)) {
|
||||
|
|
Loading…
Reference in New Issue