diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index ee28bc2db95..b8d6c52486b 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -262,6 +262,14 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { return true; } } + + // if the share recipient is allow to delete from the share, they are allowed to move the file out of the share + // the user moving the file out of the share to their home storage would give them share permissions and allow moving into the share + // + // since the 2-step move is allowed, we also allow both steps at once + if ($sourceNode->isDeletable()) { + return true; + } } throw new Forbidden('You cannot move a non-shareable node into a share');